I have recently started using Gedit on Linux. I was wondering if someone can write a language specification file for syntax highlighting for the SAS language (i.e., sas.lang). Below is a syntax highlighting file for SAS on Notepad++. Also, I am using an older version GtkSourceView-2.0. So, it would be great if this file would be backward compatible. Any help will be greatly appreciated.
<NotepadPlus>
<UserLang name="SAS" ext="sas SAS" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="no" forcePureLC="2" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="yes" Keywords5="yes" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00* 00comment 01 02; 03/* 04*/</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
<Keywords name="Numbers, extras1"></Keywords>
<Keywords name="Numbers, extras2"></Keywords>
<Keywords name="Numbers, suffix1"></Keywords>
<Keywords name="Numbers, suffix2"></Keywords>
<Keywords name="Numbers, range"></Keywords>
<Keywords name="Operators1">' - ! " & ( ) , . : ; ? @ [ \ ] ^ ` { | } ~ + < ></Keywords>
<Keywords name="Operators2">eq ne gt lt ge le in not</Keywords>
<Keywords name="Folders in code1, open"></Keywords>
<Keywords name="Folders in code1, middle"></Keywords>
<Keywords name="Folders in code1, close"></Keywords>
This file has been truncated. show original
jwestman
(James Westman)
February 21, 2024, 1:02am
2
I searched for ‘“sas” language gtksourceview’ and found this: GitHub - acolombier/gtk-language-specs-sas: Syntax highlighting for the SAS language on GTK SourceView
It’s 6 years old so might be out of date, but it might be what you’re looking for.
Yes, this is exactly what I was looking for. Thanks, James!
system
(system)
Closed
April 6, 2024, 11:29am
4
This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.