Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 431 Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors