Μετά την εγκατάσταση των παρακάτω αρχείων τα αρχεία με κατάληξη .gls θα εμφανίζονται όπως στην παραπάνω εικόνα (και με τα κατάλληλα χρώματα αν επιλέξετε ως χρωματικό συνδυασμό στο gedit αυτόν με το όνομα "Glossa").
glossa.lang (πρέπει να τοποθετηθεί στο /usr/share/gtksourceview-2.0/language-specs)
- Κώδικας: Επιλογή όλων
<?xml version="1.0" encoding="UTF-8"?>
<!--
Authors: Georgios Migdos
Copyright (C) 2009 Georgios Migdos <cyberpython@gmail.com>
-->
<language id="glossa" _name="Glossa" version="2.0" _section="Sources">
<metadata>
<property name="mimetypes">text/x-glossa</property>
<property name="globs">*.glossa;*.gls</property>
<property name="line-comment-start">!</property>
</metadata>
<styles>
<style id="comment" _name="Comment" map-to="def:comment"/>
<style id="string" _name="String" map-to="def:string"/>
<style id="floating-point" _name="Floating point number" map-to="def:floating-point"/>
<style id="decimal" _name="Decimal number" map-to="def:decimal"/>
<style id="keyword" _name="Keyword" map-to="def:keyword"/>
<style id="type" _name="Data Type" map-to="def:type"/>
<style id="boolean" _name="Boolean value" map-to="def:boolean"/>
<!-- <style id="symbol" _name="Symbol" map-to="def:symbol"/> -->
<style id="operator" _name="Operator" map-to="def:operator"/>
<!-- <style id="identifier" _name="identifier" map-to="def:identifier"/> -->
</styles>
<default-regex-options case-sensitive="false"/>
<definitions>
<context id="glossa">
<include>
<!-- Comments -->
<context id="comment" style-ref="comment" end-at-line-end="true">
<start>!</start>
</context>
<context id="string" style-ref="string" end-at-line-end="true">
<start>L?'</start>
<end>'</end>
</context>
<context id="float" style-ref="floating-point">
<match extended="true">
(?<![0-9a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ_\.])
((\.[0-9]+ | [0-9]+\.[0-9]*) ([Ee][+-]?[0-9]*)? |
([0-9]+[Ee][+-]?[0-9]*))
[fFlL]?
(?![0-9a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ_\.])
</match>
</context>
<context id="decimal" style-ref="decimal">
<match extended="true">
(?<![0-9a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ_\.])
[0-9]+[uUlL]*
(?![0-9a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ_\.])
</match>
</context>
<!-- Keywords -->
<context id="keywords" style-ref="keyword">
<match extended="true">
(?<![0-9a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ_])
([Ήή] |
[Κκ][Αα][Ιι] |
[ΟοΌό][Χχ][Ιι] |
[Ππ][Ρρ][ΟοΌό][Γγ][Ρρ][Αα][Μμ][Μμ][Αα] |
[Σσ][Ττ][Αα][Θθ][Εε][Ρρ][ΕεΈέ][ΣΣς] |
[Μμ][Εε][Ττ][Αα][Ββ][Λλ][Ηη][Ττ][ΕεΈέ][ΣΣς] |
[Αα][Ρρ][Χχ][ΗηΉή] |
[Γγ][Ρρ][ΑαΆά][Ψψ][Εε] |
[Δδ][Ιι][ΑαΆά][Ββ][Αα][Σσ][Εε] |
[Αα][Νν] |
[Ττ][ΟοΌό][Ττ][Εε] |
[Αα][Λλ][Λλ][Ιι][ΩωΏώ][ΣΣς] |
[Αα][Λλ][Λλ][Ιι][ΩωΏώ][ΣΣς]_[Αα][Νν] |
[Ττ][ΕεΈέ][Λλ][Οο][ΣΣς]_[Αα][Νν] |
[Εε][Ππ][ΙιΊί][Λλ][Εε][Ξξ][Εε] |
[Ππ][Εε][Ρρ][ΙιΊί][Ππ][Ττ][Ωω][Σσ][Ηη] |
[Ττ][ΕεΈέ][Λλ][Οο][ΣΣς]_[Εε][Ππ][Ιι][Λλ][Οο][Γγ][ΩωΏώ][Νν] |
[Γγ][Ιι][Αα] |
[Αα][Ππ][ΟοΌό] |
[Μμ][ΕεΈέ][Χχ][Ρρ][Ιι] |
[Μμ][Εε].[Ββ][ΗηΉή][Μμ][Αα] |
[Ττ][ΕεΈέ][Λλ][Οο][ΣΣς]_[Εε][Ππ][Αα][Νν][ΑαΆά][Λλ][Ηη][Ψψ][Ηη][ΣΣς] |
[ΟοΌό][Σσ][Οο] |
[Εε][Ππ][Αα][Νν][ΑαΆά][Λλ][Αα][Ββ][Εε] |
[Αα][Ρρ][Χχ][ΗηΉή]_[Εε][Ππ][Αα][Νν][ΑαΆά][Λλ][Ηη][Ψψ][Ηη][ΣΣς] |
[Μμ][ΕεΈέ][Χχ][Ρρ][Ιι][ΣΣς]_[ΟοΌό][Ττ][Οο][Υυ] |
[Κκ][ΑαΆά][Λλ][Εε][Σσ][Εε] |
[Ττ][ΕεΈέ][Λλ][Οο][ΣΣς]_[Ππ][Ρρ][Οο][Γγ][Ρρ][ΑαΆά][Μμ][Μμ][Αα][Ττ][Οο][ΣΣς] |
[Δδ][Ιι][Αα][Δδ][Ιι][Κκ][Αα][Σσ][ΙιΊί][Αα] |
[Ττ][ΕεΈέ][Λλ][Οο][ΣΣς]_[Δδ][Ιι][Αα][Δδ][Ιι][Κκ][Αα][Σσ][ΙιΊί][Αα][ΣΣς] |
[Σσ][Υυ][Νν][ΑαΆά][Ρρ][Ττ][Ηη][Σσ][Ηη] |
[Ττ][ΕεΈέ][Λλ][Οο][ΣΣς]_[Σσ][Υυ][Νν][ΑαΆά][Ρρ][Ττ][Ηη][Σσ][Ηη][ΣΣς])
(?![0-9a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ_])
</match>
</context>
<context id="types" style-ref="type">
<match extended="true">
(?<![0-9a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ_])
([Αα][Κκ][ΕεΈέ][Ρρ][Αα][Ιι][Εε][ΣΣς] |
[Ππ][Ρρ][Αα][Γγ][Μμ][Αα][Ττ][Ιι][Κκ][ΕεΈέ][ΣΣς] |
[Χχ][Αα][Ρρ][Αα][Κκ][Ττ][ΗηΉή][Ρρ][Εε][ΣΣς] |
[Λλ][Οο][Γγ][Ιι][Κκ][ΕεΈέ][ΣΣς] |
[Αα][Κκ][ΕεΈέ][Ρρ][Αα][Ιι][Αα] |
[Ππ][Ρρ][Αα][Γγ][Μμ][Αα][Ττ][Ιι][Κκ][ΗηΉή] |
[Χχ][Αα][Ρρ][Αα][Κκ][Ττ][ΗηΉή][Ρρ][Αα][ΣΣς] |
[Λλ][Οο][Γγ][Ιι][Κκ][ΗηΉή])
(?![0-9a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ_])
</match>
</context>
<context id="boolean" style-ref="boolean">
<match extended="true">
(?<![0-9a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ_])
([Αα][Λλ][Ηη][Θθ][ΗηΉή][ΣΣς] |
[Ψψ][Εε][Υυ][Δδ][ΗηΉή][ΣΣς])
(?![0-9a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ_])
</match>
</context>
<context id="operator" style-ref="operator">
<match extended="true">
(?<![0-9a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ_])
([Dd][Ii][Vv] |
[Mm][Oo][Dd] |
<- )
(?![0-9a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ_]) |
(\+ |
\- |
\* |
\/ )
</match>
</context>
<context id="identifier" style-ref="identifier">
<match extended="true">
(?<![0-9a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ_])
([a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ]
([0-9a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ_])*
)
(?![0-9a-zA-Zα-ωΑ-ΩάέήίύόώΆΈΉΊΎΌΏϊϋΪΫΐΰςΣ_])
</match>
</context>
</include>
</context>
</definitions>
</language>
glossa.xml (πρέπει να τοποθετηθεί στο /usr/share/gtksourceview-2.0/styles)
- Κώδικας: Επιλογή όλων
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2010 Georgios Migdos
Author: Georgios Migdos <cyberpython@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
-->
<style-scheme id="glossa" _name="Glossa" version="1.0">
<author>Georgios Migdos</author>
<_description>Glossa color scheme</_description>
<!-- The scheme tries to look like the scheme used in the book
"Ανάπτυξη Εφαρμογών Σε Προγραμματιστικό Περιβάλλον".
Based on the Classic color scheme.-->
<!-- Palette -->
<color name="blue" value="#0000FF"/>
<color name="magenta" value="#FF00FF"/>
<color name="violet" value="#6A5ACD"/>
<color name="cyan" value="#008A8C"/>
<color name="green" value="#2E8B57"/>
<color name="bordeaux" value="#A52A2A"/>
<color name="red" value="#FF0000"/>
<color name="yellow" value="#FFFF00"/>
<color name="purple" value="#A020F0"/>
<!-- Bracket Matching -->
<style name="bracket-match" foreground="#white" background="#grey" bold="true"/>
<style name="bracket-mismatch" foreground="#white" background="#red" bold="true"/>
<!-- Search Matching -->
<style name="search-match" background="yellow"/>
<!-- Comments -->
<style name="def:comment" foreground="#114e21" italic="true" bold="false"/>
<style name="def:shebang" foreground="#114e21" bold="true"/>
<style name="def:doc-comment-element" foreground="#114e21" italic="true"/>
<!-- Constants -->
<style name="def:constant" foreground="magenta"/>
<style name="def:special-char" foreground="violet"/>
<style name="def:string" foreground="#650067"/>
<style name="def:decimal" foreground="#016800"/>
<style name="def:floating-point" foreground="#016800"/>
<style name="def:keyword" foreground="#002967" bold="true"/>
<!-- Identifiers -->
<style name="def:identifier" foreground="cyan"/>
<!-- Statements -->
<style name="def:statement" foreground="bordeaux" bold="true"/>
<!-- Types -->
<style name="def:type" foreground="#002967" bold="true"/>
<style name="def:boolean" foreground="#002967" bold="true"/>
<!-- Others -->
<style name="def:preprocessor" foreground="purple"/>
<style name="def:error" background="red" bold="true"/>
<style name="def:note" foreground="blue" background="yellow" bold="true"/>
<style name="def:underlined" italic="true" underline="true"/>
<!-- Language specific styles -->
<style name="diff:added-line" foreground="#008B8B"/>
<style name="diff:removed-line" foreground="#6A5ACD"/>
<style name="diff:changed-line" use-style="def:preprocessor"/>
<style name="diff:special-case" use-style="def:constant"/>
<style name="diff:location" use-style="def:statement"/>
<style name="diff:diff-file" use-style="def:type"/>
<style name="xml:tags" foreground="cyan"/>
<style name="xml:attribute-name" foreground="violet"/>
<style name="xml:namespace" foreground="green" bold="true"/>
<style name="js:object" foreground="#2E8B57" bold="true"/>
<style name="js:constructors" foreground="#008B8B"/>
<style name="latex:display-math" foreground="#6A5ACD"/>
<style name="latex:command" foreground="#2E8B57" bold="true"/>
<style name="latex:include" use-style="def:preprocessor"/>
<style name="sh:variable" foreground="#6A5ACD"/>
<!-- legacy styles for old lang files -->
<style name="Others" foreground="#2E8B57" bold="true"/>
<style name="Others 2" foreground="#008B8B"/>
<style name="Others 3" foreground="#6A5ACD"/>
</style-scheme>