Change comment character in notepad ++

I am editing a .properties file in notepad ++. I can switch the block comment using Cntrl + K, but it puts a ";" instead of "#".

I am changing the langs.model.xml file and replacing the ";" from "#". I restarted notepad but it does not work.

Does anyone know how I can change the control character in a notepad ++ file for a properties file?

+6
source share
3 answers

My problem was with VB, NotePad ++ does not have the correct character set (REM instead of ') I do not want to change the language, because hilighting the keyword will be wrong I found this on mysysadmintips :

Fortunately, it’s pretty easy to change comment labels for different languages ​​in Notepad ++

Open Notepad++ language config file: C:\Users\<user name>\AppData\Roaming\Notepad++\langs.xml Scroll down to <Language name="vb" ext="vb vbs" (or other depending on what language you want to modify) Change commentLine="REM" to commentLine="'" Restart Notepad++ 
+13
source

You can get behavior using a different language. Perl, PowerShell, Python, Ruby, and Shell will use # for comments.

Then just select the block you want to comment on / off and press:

Ctrl + Q (which will switch comments)

+2
source

I'm not sure what the difference is, however, I changed both langs.xml and langs.model.xml & amp; ^ + Q toggles the block.

(In particular, I wanted to replace the batch files "REM" with "::")

0
source

Source: https://habr.com/ru/post/901595/


All Articles