I’m sure most computer programmers use more than one text editor. I have Notepad++, Sublime Text, Atom and Visual Studio Code installed on my computer. I don’t even really have a favourite. It depends what I am doing. Here’s an example.
I needed to document a SQL Server project I was working on and I wanted to have my T-SQL code properly syntax highlighted in m a Word file. After Googling that I found that Notepad++ can do the job.
- Paste your code in the window;
- Select the programming language from the language menu;
- Select the text to copy;
- Right click and select Plugin commands -> Copy Text with Syntax Highlighting;
- Paste it into MS Word and you are good to go!