But while copying data from Notepad++ syntax is not being highlighted. That’s why syntax highlighting was maintained. Repeat the same step as mentioned above but you may be wondering that in above example we have copied text from Visual Studio. Syntax highlighting while copying data from Notepad++ You can also use this syntax highlighting feature when copying data from Notepad++.
#Microsoft word add in for authors code#
You can see in the above screenshot that code is very neat and clean as compared to older one. Now your parent MS word document will look like the following screenshot. Step 5: Paste you code inside the new document Save and close the document. It will open a new window (in fact a new MS word document) for pasting your code. Step 4: Select OpenDocument Text and click on OK. Step 1: Click on the line inside the MS Word Document where you want to put your C# or SQL code. So let us use another way of syntax highlighting.
To fix this we need to go spell check and then either we need to ignore these words or add it to dictionary. The issue is that Spell checking has been enabled in MS word and showing me a lot of red underlines. In the following image you can see that I have copied some text from Visual Studio and paste it in MS word and Syntax highlighting also applied here.īut this Syntax Highlight is having issues. I am giving an example of editor so that it is easier for authors to publish formatted clean code.Īlso, it will be helpful for bloggers and developers both, so let us see how we can use it. In the same way we can highlight our C#, JavaScript, SQL, HTML, XML and other languages codes & syntaxes. If we are looking into the code and any website it is not using Syntax highlighting then more than 50% developer will not prefer to read the complete article. Syntax highlighting is one of the most useful feature for a blogging website. Developers and bloggers have to look into syntax highlighting on daily basis or at least once in a week. I would like to share some tips that how we can use syntax highlighting in MS word.