views:

148

answers:

1

Scala comes packaged with bluefish syntax config in misc/scala-tool-support/bluefish/

I have attempted to configure this, as per the README, but there is no effect.

cp ~/.bluefish/highlighting ~/.bluefish/highlighting_
cat ~/.bluefish/highlighting_ /opt/scala/scala-2.7.7.final/misc/scala-tool-support/bluefish/highlighting  > ~/.bluefish/highlighting

I have ensured highlighting is turned on in the bluefish config.

I have not used bluefish before and am trying it for the first time because there is syntax highlighting support for it.

The README says any file I open that has a .scala extension will have the scala highlighting applied. Instead I see no highlighting.

UPDATE: The file type is not present in the document types menu. So perhaps the config is incorrect? This is my bluefish highlighting file.

+1  A: 

Did you refresh the highlighting in the bluefish editor?

See Files Types:

While editing, Bluefish will only update the highlighting patterns in the block of text around the cursor.
The number of lines (the size) of this block can be adjusted in the preferences under Editor.
The syntax highlighting for the total document can be refreshed using the Document → Update Highlighting (F5) menu.

Check also if the type of a file is properly detected. If not, you can change the type using the Document → Document Type menu.

VonC
Thank you. The document type is not present in the menu. See revised question (config linked).
Synesso
@Synesso: does highlighting works for other types declared in that highlighting file?
VonC