Community
    • Login

    Need to Always/Permanently highlight non-ASCII characters

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 887 Views 1 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.
    • bisdavidB Offline
      bisdavid
      last edited by

      I work with a process that breaks if any of the input files have non-ASCII characters in them. It would help tremendously if there was a feature that I could enable that would automatically highlight any such characters whenever I open one of the files. I don’t want to have to manually search for [^\x00-\x7F]+. That’s a pain to have to manually type (let alone remember) every time I open a file.

      Any way to do this?

      Thanks in advance!

      EkopalypseE 1 Reply Last reply Reply Quote 1
      • EkopalypseE Offline
        Ekopalypse @bisdavid
        last edited by

        @bisdavid

        with a scripting plugin like pythonscript or luascript etc… you can register a callback
        for BUFFERACTIVATED notification.
        Whenever you open a new document or switch between documents the callback gets called and you could run a check if [^\x00-\x7F]+ is found.
        Sounds interesting for you?

        1 Reply Last reply Reply Quote 1
        • Alan KilbornA Offline
          Alan Kilborn
          last edited by

          @bisdavid If all that is done is to “automatically highlight any such characters whenever I open”, aren’t you still going to have to “search”…because what if said characters aren’t in the current viewable area; you won’t know if a file contains any “bad” characters or not?

          1 Reply Last reply Reply Quote 1

          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