Community

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

    Update R language Folding in code keywords

    Help wanted · · · – – – · · ·
    folding user defined la
    2
    4
    249
    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.
    • Allan R
      Allan R last edited by

      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?

      Ekopalypse 1 Reply Last reply Reply Quote 0
      • Ekopalypse
        Ekopalypse @Allan R last edited by

        @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
        • Allan R
          Allan R last edited by

          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.

          Ekopalypse 1 Reply Last reply Reply Quote 0
          • Ekopalypse
            Ekopalypse @Allan R last edited by

            @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
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors