Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    R/IDENTIFIER missing?

    Help wanted · · · – – – · · ·
    r language style config
    3
    6
    106
    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.
    • Mikel Petty
      Mikel Petty last edited by

      This is, I hope, a very simple question …

      I use Notepad++ to edit R programs. In Notepad++ version 7.4.5, which is on my home computer, the Style Configuator Language/Style combinations for R include R/IDENTIFIER. (See the screen shot, which is from version 7.4.5.)

      Unfortunately, in Notepad++ version 8.4.4, which is on my office computer, R/IDENTIFIER appears to be missing. That particular combination is rather important. (In the screen shot, the identifiers are green.)

      How can I find or add the R/IDENTIFIER Language/Style combination in version 8.4.4?

      Thank you for your help.

      R IDENTIFIER.png

      PeterJones 1 Reply Last reply Reply Quote 0
      • PeterJones
        PeterJones @Mikel Petty last edited by PeterJones

        @Mikel-Petty

        The simple answer is that something got deleted from your stylers.xml, because the copy that ships with Notepad++ (including v8.4.4) does include R: IDENTIFIER.

        d06c7092-8be2-4de2-9b4b-5081b84028a6-image.png

        You might want to compare your active copy of stylers.xml (which is probably in %AppData%\Notepad++\stylers.xml) to the stylers.model.xml (which is in the same directory as notepad++.exe, probably c:\program files\notepad++\stylers.model.xml), and copy any missing entries from stylers.model.xml to stylers.xml, then re-start Notepad++. (if you have ComparePlugin or ComparePlus Plugin, that will help with the comparison).

        7dc9a061-0ff4-4c75-8423-57df6727e141-image.png

        1 Reply Last reply Reply Quote 0
        • guy038
          guy038 last edited by

          Hi, @mikel-petty, @peterjones and All,

          Sorry, Peter, but in your screenshot of the stylers.model.xml, I do not see any reference to a green value, as specified by @mikel-petty, for the wordstyle IDENTIFIER ?!

          Best Regards,

          guy038

          PeterJones 1 Reply Last reply Reply Quote 0
          • PeterJones
            PeterJones @guy038 last edited by PeterJones

            @guy038 ,

            The point isn’t the color. The point is that the default stylers.model.xml does define the IDENTIFIER style for the R language, and that the GUI does show the IDENTIFIER style for the R langauge. If @Mikel-Petty wants it green rather than the default black, that’s easy to change in the GUI.

            The other thing to note, for @Mikel-Petty’s information, is that IDENTIFIER was added to stylers.model.xml in v7.2.2. So it is possible that the “offline computer” originally had an older copy of Notepad++, and when it upgraded, it did not add that style to the stylers.xml (and thus maybe not to stylers.model.xml, either). In which case, it may be necessary to download stylers.model.xml from the source.

            1 Reply Last reply Reply Quote 1
            • guy038
              guy038 last edited by guy038

              Hello, @mikel-petty, @peterjones and All,

              Oh, my bad !

              I was just puzzled about some other wordstyles with a fgColor value different from default black !

              BR

              guy038

              1 Reply Last reply Reply Quote 0
              • Mikel Petty
                Mikel Petty last edited by

                @PeterJones,
                Your solution worked perfectly.
                Thank you for your quick and useful response.

                1 Reply Last reply Reply Quote 2
                • First post
                  Last post
                Copyright © 2014 NodeBB Forums | Contributors