Howto:Syntax highlighting for Nasal: Difference between revisions

Jump to navigation Jump to search
(→‎KDE Editors: note the KDE site is no longer available and the syntax highlighter cannot be found at the new site)
Line 49: Line 49:


== KDE Editors ==
== KDE Editors ==
'''''NOTE: kde-files.org no longer exists. It points you to store.kde.org but searches there do not turn up anything related to nasal.'''''
There's a highlighting definition for nasal available at '''opendesktop.org''' (https://dl.opendesktop.org/api/files/download/id/1502659914/nasal.xml)


There's a highlighting definition for nasal available at '''kde-files.org''' (http://kde-files.org/content/show.php/Nasal+highlighting?content=154555)
Download the file and copy it into:
:~/.kde4/share/apps/katepart/syntax/ (for KDE4)
:or
:~/.local/share/katepart5/syntax/ (for KF5 pre 5.29)
:or
:~/.local/share/org.kde.syntax.highlighting/syntax/ (for current KF5 versions)  


Download the file and copy it into ~/.kde4/share/apps/katepart/syntax/ (you can create the folders if they don't exist yet).
(you can create the folders if they don't exist yet).


Note that the syntax highlighting in KDE doesn't set colors, it just identifies structural elements, colors are defined by the '''schemas''' used by each editor, thus you get consistent highlighting between different languages.
Note that the syntax highlighting in KDE doesn't set colors, it just identifies structural elements, colors are defined by the '''schemas''' used by each editor, thus you get consistent highlighting between different languages.
422

edits

Navigation menu