Trying to get ruby's functionlist to work with .cr files
-
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!
-
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) -
Roger. Thanks so much PeterJones, have a great rest of your week!!