Menu ▾ ▴

#140 Ruby syntax assistance not working

2.4.3
open
nobody
ruby (1)
Windows
5 days ago
5 days ago
MUSTDOS
No

I got no syntax highlights, function folding/collapsing or anything for ruby files. I even made sure that my files end in .rb

How to solve?

Discussion

  • Olivier Sessink

    Olivier Sessink - 5 days ago

    what syntax language mode does Bluefish detect, and which MIME type is detected? If you hold your mouse over the tab of the file this will be shown. Syntax language mode is also shown in the statusbar right bottom.

     
    • MUSTDOS

      MUSTDOS - 5 days ago

      MIMIE: application/x ext rb

      Syntax language mode in status bar right bottom: Unknown UTF-8

       
  • Olivier Sessink

    Olivier Sessink - 5 days ago

    application/x-ext-rb is not in the ruby language definition, that's why it is not detected. If you go to preferences -> Language support -> Ruby enable the "Show this language in the menu"

    Now go to the menu Document->Language mode->Ruby and bluefish will ask you if you want to use this type for application/x ext rb. Now it will work.

    b.t.w. the Ruby support is very basic, see the installed ruby.bflang2 file. Improvements are welcome!

     
    • MUSTDOS

      MUSTDOS - 5 days ago

      Thanks! it was detected in language support but for some reason, it wheren't detected properly in language mode.

       

Log in to post a comment.