• Login
Community
  • Login

Update R language Folding in code keywords

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
foldingudl
4 Posts 2 Posters 495 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.
  • A
    Allan R
    last edited by Aug 14, 2019, 4:43 PM

    I would like to add a set of keywords, specific to the R shiny package, that would trigger code folding. Is there a way to add these to the langs.model.xml file?

    E 1 Reply Last reply Aug 14, 2019, 5:45 PM Reply Quote 0
    • E
      Ekopalypse @Allan R
      last edited by Aug 14, 2019, 5:45 PM

      @Allan-R

      no, the R lexer doesn’t seem to have such functionality. Indeed, I’m not aware of any lexer providing something like this.

      1 Reply Last reply Reply Quote 0
      • A
        Allan R
        last edited by Aug 14, 2019, 9:08 PM

        Is there a way to export the default R tokens? Those could then be imported as a User Defined Language which does give me the control to add folding options.

        E 1 Reply Last reply Aug 15, 2019, 6:57 PM Reply Quote 0
        • E
          Ekopalypse @Allan R
          last edited by Aug 15, 2019, 6:57 PM

          @Allan-R

          not exactly as an export/import action but as copy/paste for keywords.
          The keywords are listed in the langs.xml.

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