From 7def17eed51c0a5dcb6c8f99319f7ad90fe28d26 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Sun, 21 Apr 2013 07:27:59 +0000 Subject: [PATCH] Add syntax configuration file for gtksourceview (this allows QC code syntax highlighting for GNOMEs default text view in nautilus, gedit, and sandy + other gtksouceview based editors). --- syntax/README | 9 +- syntax/gtksourceview/README | 5 + syntax/gtksourceview/qc.lang | 173 +++++++++++++++++++++++++++++++++++ 3 files changed, 184 insertions(+), 3 deletions(-) create mode 100644 syntax/gtksourceview/README create mode 100644 syntax/gtksourceview/qc.lang diff --git a/syntax/README b/syntax/README index 6c65422..04af9ff 100644 --- a/syntax/README +++ b/syntax/README @@ -5,9 +5,12 @@ you can install the configuration file correctly. Currently the supported text editors: geany kate - kwrite - uses kate syntax highlighting - kdevelop - uses kate syntax highlighting - QtCreator - supports kate syntax highlighting + kwrite - uses kate syntax highlighting + kdevelop - uses kate syntax highlighting + QtCreator - supports kate syntax highlighting + gtksourceview - main source viewer in GNOME + gedit - uses gtksourceview + sandy - uses gtksourceview nano diff --git a/syntax/gtksourceview/README b/syntax/gtksourceview/README new file mode 100644 index 0000000..73a6072 --- /dev/null +++ b/syntax/gtksourceview/README @@ -0,0 +1,5 @@ +To use the gtksourceview syntax highlighting install qc.lang to the syntax +directory for gtksourceview + +# Can be installed globally to +/usr/share/gtksourceview-[version]/language-specs/ diff --git a/syntax/gtksourceview/qc.lang b/syntax/gtksourceview/qc.lang new file mode 100644 index 0000000..827290f --- /dev/null +++ b/syntax/gtksourceview/qc.lang @@ -0,0 +1,173 @@ + + + + *.qc + // + /* + */ + + + +