• Login
Community
  • Login

Arduino Activ Line not visible

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 418 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.
  • E
    Elodie CEMOI
    last edited by Elodie CEMOI Jan 2, 2020, 4:20 PM Jan 2, 2020, 4:19 PM

    I have just installed the latest update 7.8.2 and the graphic color settings have not been hold by Npp.

    For an unknown reason, my Arduino program (the language is still defined as “Arduino”) has not the same colors than before the update: the active line (I mean the line where I type the words on the screen) is no longer visible: see attached screen capture.

    [URL][IMG]https://nsa40.casimages.com/img/2020/01/02/20010205233347999.jpg[/IMG][/URL]

    How can i fix it ??

    thank you

    1 Reply Last reply Reply Quote 0
    • P
      PeterJones
      last edited by Jan 2, 2020, 4:37 PM

      @Elodie-CEMOI ,

      Since there is no “Arduino Activ” language built in, I am assuming it’s a UDL. With v7.8.2, you can use Language > User Defined Language > Define Your Language… to change the colors for a given language.

      The file that sets it should either be in Language > User Defined Language > Open User Defined Language Folder…, or it should be in the parent directory to that one, as userDefineLang.xml.

      UDL References:

      • https://npp-user-manual.org/docs/user-defined-language-system/
      • https://ivan-radic.github.io/udl-documentation/

      Aside

      The syntax for embedding images is not [URL][IMG]https://nsa40.casimages.com/img/2020/01/02/20010205233347999.jpg[/IMG][/URL]; it is ![](https://nsa40.casimages.com/img/2020/01/02/20010205233347999.jpg), which you could have seen by clicking the image button

      For others’ reference, the image that @Elodie-CEMOI linked is:

      1 Reply Last reply Reply Quote 1
      • P
        PeterJones
        last edited by Jan 2, 2020, 4:41 PM

        Oh, I forgot to say:

        There are instances (such as issue#5630 ) where UDL colorization gets reset under certain circumstances; so far, no fix has been found. Sorry if this is what caused your color corruption.

        I personally recommend keeping each individual UDL in a separate XML in the userDefineLangs subfolder, and keep a backup of those (or keep it in version control, like I do), so if something gets corrupted, you can revert easily.

        1 Reply Last reply Reply Quote 1
        • E
          Elodie CEMOI
          last edited by Jan 2, 2020, 5:47 PM

          Thanks Peter,

          You say “There are instances (such as issue#5630) where UDL colorization gets reset under certain circumstances; so far, no fix has been found”.

          Can you tell me how to proceed to perform this reset ? because I am not an expert of N++ at all…

          Thank you,

          1 Reply Last reply Reply Quote 0
          • P
            PeterJones
            last edited by Jan 2, 2020, 6:28 PM

            @Elodie-CEMOI said in Arduino Activ Line not visible:

            Can you tell me how to proceed to perform this reset ?

            Sorry, you misunderstood. I should have phrased it as “corruption” not “reset”. I said reset, because at least in some of the cases, some or all of the foreground colors get “reset” to black (which is the default foreground color when defining a UDL); in your case, the black foreground overtop your black background makes the text invisible. The “reset” already happened, when it corrupted the file.

            At this point, if you do not have a backup copy of your UDL definition file (whether it was in the userDefineLang.xml or a file in the userDefineLangs\ subfolder), then you just have to manually define the colors, the same as you did when you created the UDL. This is why I said “you can use Language > User Defined Language > Define Your Language… to change the colors for a given language.” (If you didn’t create the UDL, but got it from someone/somewhere else, go grab a new copy; that is your “backup”.)

            1 Reply Last reply Reply Quote 0
            • E
              Elodie CEMOI
              last edited by Jan 3, 2020, 2:50 PM

              Thank you very much Peter !

              If I had knew that this update will put this mess, I would have kept my previous 7.8.1 version that was just perfect…

              By the way: Happy New Year !

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