πŸ“’
SDV503
  • SDV503
  • Command Prompt
    • Windows Command Prompt
    • Mac OS Terminal
  • GIT & GITHub
    • GitHub
    • Git
      • Git Workflow
        • Forking Workflow
  • README
    • How to write a readme.md file?
    • Write a better README.me
    • Generate a README for GitHub Repo Quickly
  • Code-comments
    • Clean Comments
    • Writing Comments in a Good way
  • Pair Coding
    • What is Pair Coding?
    • Pair Programming Experience
  • Programming?
    • What is Programming?
    • What Is A Programming Paradigm?
    • JavaScript Programming Paradigms
  • Number Systems
    • Decimal and Binary numbers
  • JavaSCript
    • Introduction To JavaScript
      • The JavaScript Engine
  • JS Call Stack
    • JavaScript call stack
    • JavaScript & Memory
      • Memory Leaks in JavaScript
    • Execution Context and Execution Stack in Javascript
      • Javascript Execution Context and Hoisting
  • JavaScript Variables
    • Introduction to JS Data Types
    • Primitive and Non-Primitive
    • Operator precedence and associativity
      • JS Operators Part One
      • JS Operators Part Two
      • JS Operators Part Three
    • Clean Code for JS Variables
  • JavaScript Scopes
    • Scope (Chain) Visualized
  • Javascript β€Šβ€”β€Šthis keyword
  • JavaScript Data Types
    • More JavaScript Data Types
  • JavaScript Expressions and Statements
  • if/else, switch and ternary operator
    • If/Else statement
  • Switch Statement
  • Ternary Operator
  • JavaScript Loops
    • Loops in JavaScript
      • Trouble With Loops
  • Objects
    • JavaScript Objects
      • Prototypal Inheritance Visualized
      • JavaScript Number Object
      • JavaScript String Object
  • Functions
    • JavaScript Function Part One
    • JavaScript Function Part Two
    • Immediately Invoked Function Expressions ~ IIFE
    • JS => Arrow Functions
    • JavaScript Callback
    • Hoisting in JavaScript
      • Hoisting Visualized
    • Recursion Functions
    • Curry and Function Composition
  • JavaScript Features
    • JSpread Operator
    • JavaScript Built-in Functions & Objects
  • Data Structures&Algorithms
    • JavaScript’s Data Types
    • Data Structures in JavaScript
      • Introduction to Big O Notation
      • Big O Notation in Javascript
      • Linked Lists
        • Linked Lists β€” 2
      • Hash Tables
      • Stack & Queue
  • TLDR
    • Single quotes (β€˜ ’) and double quotes (β€œ ”) in JavaScript
  • ES6
    • Generators and Iterators
    • Javascript Classes
    • JavaScript closures
    • JavaScript Promises & Async/Await
      • Event Loop Visualized
  • C#
    • What does C#? (C Sharp)
    • C# vs JavaScript
    • What Is The Difference Between C#, .NET, ASP.NET, Microsoft.NET, and Visual Studio?
    • What is the .NET Framework?
    • Methods and Properties of Console Class in C#
    • Datatypes in C#
    • C# Code Comments
    • The if statement
    • The switch statement
    • Loops
    • Comparison operators
    • Addition assignment operators
    • The String Interpolation Operator
    • Arrays
    • Lists
    • Dictionaries
Powered by GitBook
On this page
  • What is readme.md file?
  • What is markdown?
  • Headings
  • Normal text
  • Hyperlinks
  • Strong and italic text
  • StrikeThrough
  • Images
  • Tables
  • Quotes
  • Code
  • Code block
  • List
  • Horizontal line

Was this helpful?

  1. README

How to write a readme.md file?

PreviousForking WorkflowNextWrite a better README.me

Last updated 4 years ago

Was this helpful?

What is readme.md file?

It is a simple plain text file that contains the basic information of the files and some guides. It is used to write some installation guide or basic documentation inside the project directory. Most popular repository providers like GitHub, Gitlab, and bitbucket are using the readme.md file as a file descriptor.

It is a simple plain text file that contains the basic information of the files and some guides. It is used to write some installation guide or basic documentation inside the project directory. Most popular repository providers like GitHub, Gitlab, and bitbucket are using the readme.md file as a file descriptor.

What is markdown?

Markdown is a scripting language that is very lightweight. It is used to format plain text to a respective design. Markdowns are rapidly used in content writing in some blog post websites. It converts some plain text to the desired format in HTML. The simplicity and ease to understand are making the markdown more popular. It takes all the text from the markdown file and converts it to HTML through a markdown app or a compiler.

Markdown is a scripting language that is very lightweight. It is used to format plain text to a respective design. Markdowns are rapidly used in content writing in some blog post websites. It converts some plain text to the desired format in HTML. The simplicity and ease to understand are making the markdown more popular. It takes all the text from the markdown file and converts it to HTML through a markdown app or a compiler.

If you are a beginner at markdown file then this article is for you. I am going to write a readme.md file so that you will have a better understanding of the markdown script.

Here I am using visual studio code IDE for writing markdown files. Below are the steps to create a markdown file in visual studio code.

Step-1: Open visual studio code and goto file > new file

Step-2: Name the file as readme.md or readme.markdown and save the file.

Step-3: Find and click the β€˜open preview to the side’ icon.

Step-4: Start writing the script.

Headings

For writing headings, you have to add the hash # symbol at the beginning of the line. The number of the hash symbol will increase heading type will change according to that.

markdown headings

You can write up to Heading 6.

Normal text

If you want to write normal text then write simple text here, no need to add any tags it will automatically convert into text.

You can write simple text in a markdown file

Hyperlinks

You can add a hyperlink in a markdown file by using the below tag.

[link name](targetURL)

e.g. [Github](https://www.github.com)

You can also write link title (While hovering over the link the title will appear)

[link name](targetURL "Link title")

e.g. [Github](https://www.github.com "Github home")

note: Make sure a single space should be their between targetURL and title)

Strong and italic text

You can write strong and italic text by appending underscores _ before and ending of the line, for italic text add double star ** before and ending of the line for strong/bold text.

_Italic text here_

StrikeThrough

If you want to strike through a word or line then add two tilde symbols at the beginning and end of the line.

~~Strikethrough text~~

Images

You can add images in a markdown file by using the below tag.

![imagename](TargetUrl)

Tables

You can write a table by using the below format of text.

|Name|Email|Address|      <====== This is the heading of the table|----|-----|-------|      <====== This is the separator.|John|john@example.com|Address1| <=== This is the table body.

Quotes

If you want to write quotes the just add a > the symbol at the beginning of the line.

>Your quote looks like this.

Code

You can write code by appending ` the symbol at the beginning and end of the line.

Code block

If you want to write a block of code then add ``` at starting and ending of the code.

You can specify your language after the ``` at starting of the line.

```Language
your code
```

List

You can write an ordered list, unordered list, and mixed list. Please see the below format how to write a list.

1. Item 12. Item 23. Item 3   * Sub item 1   * Sub item 3* Unordered item* Unordered item* Unordered item

Horizontal line

If you want to add a horizontal line in the markdown file then simply add --- or ***

Note: *** is for thicker line.