Community
    • Login

    Trying to get ruby's functionlist to work with .cr files

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 255 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.
    • Girng RodriguezG
      Girng Rodriguez
      last edited by Girng Rodriguez

      Hi everyone! I’m a crystal dev and I’m fiddling around with C:\Users\Nick\AppData\Roaming\Notepad++\functionList.xml and found the ruby associate id part:

      <association id= "ruby_syntax" langID="36" />

      In fact, the functionList expressions work great for .cr files too, the problem is, notepad++ doesn’t detect when I’m editing a .cr file to apply the ruby functionList rules.

      I read online you could add a ext attribute like so:

      <association id= "ruby_syntax" ext=".cr" langID="36" />

      But when editing a .cr file it still doesn’t apply, any help is appreciated!

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Girng Rodriguez
        last edited by PeterJones

        @Girng-Rodriguez ,

        The extension-based function list hasn’t worked since it was changed in late 2020 in v7.9.1

        If you want *.cr to be associated with Ruby, then go to Settings > Style Configurator > Ruby and add cr to the user-extension list. (And that worked even before v7.9.1)

        Girng RodriguezG 1 Reply Last reply Reply Quote 5
        • Girng RodriguezG
          Girng Rodriguez @PeterJones
          last edited by Girng Rodriguez

          Roger. Thanks so much PeterJones, have a great rest of your week!!

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