Community
    • Login

    Disable .NFO style

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 4.5k Views 2 Watching
    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.
    • telk5093T Offline
      telk5093
      last edited by

      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
      • Eduardo BorgesE Offline
        Eduardo Borges
        last edited by

        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
        • telk5093T Offline
          telk5093
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • Claudia FrankC Offline
            Claudia Frank
            last edited by

            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors