Skip to content
Browse files

added markdown file

Some changes
  • Loading branch information...
1 parent 0162a33 commit d483a6c0152db22e436770d49987b3fdb0378e6b @alanbuchanan alanbuchanan committed with Rafase282
Showing with 58 additions and 0 deletions.
  1. +58 −0 writing-a-markdown-file-using-atom.md
View
58 writing-a-markdown-file-using-atom.md
@@ -0,0 +1,58 @@
+# Writing a Markdown File for GitHub using Atom
+Markdown is a way to style text on the web, and GitHub users make use of markdown to provide documentation for their repositories.
+
+From [GitHub guides](https://guides.github.com/features/mastering-markdown/):
+
+> You control the display of the document; formatting words as bold or italic, adding images, and creating lists are just a few of the things we can do with Markdown. Mostly, Markdown is just regular text with a few non-alphabetic characters thrown in, like # or *.
+
+> You can use Markdown most places around GitHub:
+ - Gist
+ - Comments in Issues and Pull Requests
+ - Files with the .md or .markdown extension
+
+> Markdown files have the extension `.md` and you'll see that a vast number of GitHub repositories have `README.md` files.
+
+A great example is that if you want to write a Wiki file for this repository, it'll need to be a `.md` file. What you're reading right now is a markdown file called `writing-a-markdown-file-using-atom.md`.
+
+Markdown files are easy to write, and you can find a markdown cheat sheet [here](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet).
+
+## Creating a readme file on GitHub
+You can compose a README.md file on GitHub itself:
+
+![screen shot 2016-02-29 at 18 07 19](https://cloud.githubusercontent.com/assets/10364894/13405950/e68b0a7c-df18-11e5-876f-9de0b5305bb3.png)
+
+This gives you the capability to switch between 'Edit new file' and 'Preview' views:
+
+![screen shot 2016-02-29 at 18 06 24](https://cloud.githubusercontent.com/assets/10364894/13405946/e4d62a7c-df18-11e5-9056-1f213b2d0b9f.png)
+
+This is ideal if your readme file is small, and you don't mind switching between the two views.
+
+But what if your `.md` file is not a readme, and you want the luxury of working in a text editor and a live preview of what your text looks like at the same time as you edit it?
+
+## Writing Markdown files with Atom
+If you're writing a long or detailed markdown file, it helps to get a live preview of exactly what your markdown looks like, in the same way that you might use live reload capabilities to update your browser if you're working on a project that uses HTML and CSS, for example.
+
+A good way to go about creating a markdown file uses the [Atom text editor](https://atom.io/). You can install and use Atom for free.
+
+Atom, like other text editors, makes use of packages, which are pieces of code that allow you to customize your workflow.
+1. Firstly, you'll want to install the Atom text editor from [here](https://atom.io/).
+2. When Atom is installed, open it, and open a new file with a `.md` extension.
+3. To see your live preview, right click your `.md` file from the explorer on the left, and then select the top option, 'Markdown Preview':
+
+ ![screen shot 2016-02-29 at 18 17 30](https://cloud.githubusercontent.com/assets/10364894/13405953/e852809c-df18-11e5-8db2-d12e630cc2a7.png)
+
+ Cool! You should now see two panes in Atom. On the left is your text, and on the right is your 'compiled' markdown, ie what it might look like on GitHub:
+
+ ![screen shot 2016-02-29 at 18 21 38](https://cloud.githubusercontent.com/assets/10364894/13405958/eaf4bc0c-df18-11e5-9727-33e21df55838.png)
+
+ Notice that Atom also recognizes what you are working with to be a specific format, ie 'GitHub Markdown':
+
+ ![screen shot 2016-02-29 at 19 15 43](https://cloud.githubusercontent.com/assets/10364894/13405964/ed9c2422-df18-11e5-8118-0358e9cdbeaa.png)
+
+4. When your markdown file is ready to commit to your GitHub repository, you can go ahead and commit it!
+
+ For contributing to the FreeCodeCamp wiki, go to [this page](https://github.com/FreeCodeCamp/freecodecamp/wiki) and check out the 'Guides on how to Contribute' section.
+
+ For adding a project or files to GitHub, go to [this page](https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/).
+
+**Bonus step:** Atom has a package named 'Markdown Preview Plus'. It does the same as the normal markdown previewer, but the preview file is styled more accurately to the GitHub style. Go ahead and install this package and see what you get.

0 comments on commit d483a6c

Please sign in to comment.
Something went wrong with that request. Please try again.