• Login
Community
  • Login

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

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 264 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.
  • G
    Girng Rodriguez
    last edited by Girng Rodriguez Nov 4, 2023, 7:11 AM Nov 4, 2023, 7:04 AM

    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!

    P 1 Reply Last reply Nov 4, 2023, 2:32 PM Reply Quote 0
    • P
      PeterJones @Girng Rodriguez
      last edited by PeterJones Nov 4, 2023, 2:33 PM Nov 4, 2023, 2:32 PM

      @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)

      G 1 Reply Last reply Nov 4, 2023, 4:33 PM Reply Quote 5
      • G
        Girng Rodriguez @PeterJones
        last edited by Girng Rodriguez Nov 4, 2023, 4:34 PM Nov 4, 2023, 4:33 PM

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

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