Comment multiple lines on notepad++ #1033
-
I write my code files in .egsinp on notepad++. How can I comment multiple lines at once? It's such time-consuming to put # line by line.. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Use a code editor that understands syntax (e.g., VS Code). Select the language Ruby, and you should then be able to comment multiple lines. Alternatively, you can also comment out only the |
Beta Was this translation helpful? Give feedback.
-
You need to tell the editor what programming language to associate with .egsinp files, since this is a custom extension. Telling it to pretend the file is Ruby tends to do a decent job of syntax highlighting and the comment types are right. In most general purpose editors, you can do this in the options. Spyder seems more limited. |
Beta Was this translation helpful? Give feedback.
Use a code editor that understands syntax (e.g., VS Code). Select the language Ruby, and you should then be able to comment multiple lines.
Alternatively, you can also comment out only the
#:start
tag to effectively comment out an entire block (until the:stop
tag), because the input parser looks for:start
tags to trigger the block input.