Autoformating of HTML comments - how to turn off ?!
-
Hi all!
Just a quick question:
If i write a simple HTML comment:
<!-- Comment here --> ,
Currently, Notepad++ will auto-format the “<!–” and “–>” and replace them with some weird characters (long arrow).
Can this be disabled so it looks normal, instead of that auto-formatting…?
Much appreciated!
NOTE: I am using the default, normal, Notepad downloaded. Latest version.
-
Currently, Notepad++ will auto-format the “<!–” and “–>” and replace them with some weird characters (long arrow).
Can this be disabled so it looks normal, instead of that auto-formatting…?
It is a feature of your chosen font. I am guessing you use Fira Code or Cascadia Code as your font, though there are any number of other fonts which also use ligatures. The User Manual’s Settings > Prefences > MISC > Direct Write Rendering Mode explains a Notepad++ setting which can cripple your font, if that’s what you want (though it also makes it harder for Notepad++ to render many emoji or non-latin text in your text files); or you could choose a font that doesn’t have the ligature feature (like the Fira Mono or Cascadia Mono, which are the non-ligature versions of the same fonts as those I mentioned above, as suggested in the User Manual) and not have to change the rendering setting in Notepad++.
-
Many thanks for your anser!
it was Consolas!
but here is the weird thing - i changed Consolas to JetBrainsMono (love the IntelijIDEA font xD).
It stopped auto-converting!
Now, reverting to Consolar…it no longer changes it !
Go figure! :))
-
it was Consolas!
Weird. I have never been able to get Consolas to give ligatures.
but here is the weird thing - i changed Consolas to JetBrainsMono (love the IntelijIDEA font xD).
It stopped auto-converting!That’s truly weird, because
JetBrains Mono
has ligatures.JetBrains Mono NL
is the version that doesn’t have ligatures (theNL
literally meansno-ligatures
, as far as my research uncovered)Now, reverting to Consolar…it no longer changes it !
Glad you got it to a state you like it. (However, I would actually recommend that you try to get used to the ligatures: those fonts were designed to be monospace even with the ligatures, so it helps your brain parse what you’re reading much easier, even more than just syntax highlighting alone. At first, I was opposed to the ligatures, but I forced myself to try the experiment for a week, and found when I tried to go back that I missed the ligatures. So now Fira Code is my go-to monospace font.)