Community
    • Login

    Autoformating of HTML comments - how to turn off ?!

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 34 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Moraru CosminM
      Moraru Cosmin
      last edited by

      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.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Moraru Cosmin
        last edited by PeterJones

        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++.

        Moraru CosminM 1 Reply Last reply Reply Quote 1
        • Moraru CosminM
          Moraru Cosmin @PeterJones
          last edited by

          @PeterJones

          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! :))

          PeterJonesP 1 Reply Last reply Reply Quote 1
          • PeterJonesP
            PeterJones @Moraru Cosmin
            last edited by

            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 (the NL literally means no-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.)

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors