summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2017-01-27 08:32:58 +0100
committerEduardo Pedroni <e.pedroni91@gmail.com>2017-01-27 08:32:58 +0100
commite793093be40e84625ca0d806cd6058bb33d73b17 (patch)
tree90f51b16c05c3b46709ce3297e6069bfddef1284
parentd31f1337c252a65f3b33e7d74cdbda14547ae39f (diff)
Added flashcard syntax highlighting for gedit
-rw-r--r--flashcard.lang21
1 files changed, 21 insertions, 0 deletions
diff --git a/flashcard.lang b/flashcard.lang
new file mode 100644
index 0000000..dd113b4
--- /dev/null
+++ b/flashcard.lang
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<language id="flashcard" _name="Flashcard" version="2.0" _section="Markup">
+ <metadata>
+ <property name="mimetypes">text/plain</property>
+ <property name="globs">*.</property>
+ </metadata>
+
+ <styles>
+ <style id="card_front" _name="card header" map-to="def:type" />
+ </styles>
+ <definitions>
+ <context id="flashcard">
+ <include>
+ <context id="card_front" style-ref="card_front">
+ <start>CARD:</start>
+ <end>$</end>
+ </context>
+ </include>
+ </context>
+ </definitions>
+</language>