• Login
Community
  • Login

Disable .NFO style

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 4.0k 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.
  • T
    telk5093
    last edited by Sep 28, 2015, 1:16 PM

    Hello, is there a way to disable the style when *.nfo file is opened?
    When I open *.nfo file, (but it is not for dos file, just has the same extension) notepad++ opens this file as OEM-US encoding. I want it to open as a UTF-8.
    And also affected a certain style, but I want to disable it. Just Normal Text style will be great.

    Do you have an idea?

    Summary: I want to open an *.nfo file as a normal text file

    1 Reply Last reply Reply Quote 0
    • E
      Eduardo Borges
      last edited by Oct 9, 2015, 6:51 PM

      Is that so simple? Change file extension to .txt, make as you wish, change extension to .txt again.

      1 Reply Last reply Reply Quote 0
      • T
        telk5093
        last edited by Dec 7, 2015, 5:12 PM

        Thanks for reply but it must be remained as *.nfo.

        1 Reply Last reply Reply Quote 0
        • C
          Claudia Frank
          last edited by Dec 7, 2015, 6:20 PM

          Hello telk5093,

          you can edit stylers.xml and langs.xml to comment nfo specific lines.
          look for the followng lines in

          stylers.xml

          <LexerType name="nfo" desc="Dos Style" ext="">
               <WordsStyle name="DEFAULT" styleID="32" fgColor="2E2E2E" bgColor="FFFFFF" fontStyle="0" fontSize="10" />
          </LexerType>
          

          langs.xml

          <Language name="nfo" ext="nfo">
          </Language>
          

          To comment the lines you need to select it and press strg+k which results in e.g.

          <!-- <LexerType name="nfo" desc="Dos Style" ext="">
                  <WordsStyle name="DEFAULT" styleID="32" fgColor="2E2E2E" bgColor="FFFFFF" fontStyle="0" fontSize="10" />
              </LexerType> -->
          

          Restart npp.

          Disadvantage, if you update npp it will overwrite your changes.

          Cheers
          Claudia

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