

create a new comment thread) for the selected text range. The string that eventually needs to be inserted. The 4th line shows the content of the snippet. Please feel free to ask any questions on this tutorial. In this section, we add a button to the toolbar that lets the user add comments (viz. On the 3rd line we define the 'prefix' that will trigger the snippet.
#Atom add comment snippit code#
So, did you find this MS Word tips useful? Whenever you would need to insert a code snippet with syntax highlight in MS Word document, I am sure it will save you a lot of time.
There are many snippets that come with Atom pre-installed and you can easily create your own snippets as well. It is of great help because a lot of programming keywords are not found in dictionary, and as a result such code may result in lots of red and green wavy lines. When you press TAB or ENTER, Atom will insert the code snippet in the place where you started to type. Now, remove the comments as shown below from this opened file. Edit file: A file will open after clicking on New Snippet.

Atom comes with a nice default font family (Monaco).
#Atom add comment snippit how to#
Before we get into the pro details and tips, let me quickly give you a tour on how to set up the most relevant things (such as fonts, styles, templates, etc.) inside your new Atom code editor. A file will be open with some pre-written code. So before we get started, download Atom at atom.io. Go to Developer Option: Go to the developer option and click on New Snippet. Spelling and grammar mistakes will not be highlighted by MS Word in the embedded code snippet. Open Sublime Text: Go to Tools: Go to the Tools option and click on it.Code and main document remain separate from each other (programmers love this approach, don’t they?).Advantages of Embedding Code Snippets with Syntax HighlightsĪlthough you can always manually highlight various portions of a code snippet in MS Word, but there are many distinctive advantage of using the embedded object method:
