• Login
Community
  • Login

R/IDENTIFIER missing?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
r languagestyle config
6 Posts 3 Posters 435 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.
  • M
    Mikel Petty
    last edited by Sep 23, 2022, 8:56 PM

    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

    P 1 Reply Last reply Sep 23, 2022, 10:13 PM Reply Quote 0
    • P
      PeterJones @Mikel Petty
      last edited by PeterJones Sep 23, 2022, 10:14 PM Sep 23, 2022, 10:13 PM

      @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
      • G
        guy038
        last edited by Sep 24, 2022, 12:39 AM

        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

        P 1 Reply Last reply Sep 24, 2022, 12:45 AM Reply Quote 0
        • P
          PeterJones @guy038
          last edited by PeterJones Sep 24, 2022, 12:48 AM Sep 24, 2022, 12:45 AM

          @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
          • G
            guy038
            last edited by guy038 Sep 24, 2022, 1:14 AM Sep 24, 2022, 1:11 AM

            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
            • M
              Mikel Petty
              last edited by Sep 26, 2022, 5:18 PM

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

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