Skip to content

Instantly share code, notes, and snippets.

@sergejx
Created February 9, 2011 09:04
Show Gist options
  • Save sergejx/818179 to your computer and use it in GitHub Desktop.
Save sergejx/818179 to your computer and use it in GitHub Desktop.
TaskPaper language definition for Gedit
<?xml version="1.0" encoding="UTF-8"?>
<language id="taskpaper" _name="TaskPaper" version="2.0" _section="Others">
<metadata>
<property name="globs">todo;*.taskpaper</property>
</metadata>
<styles>
<style id="project" _name="Project" map-to="def:type"/>
<style id="task" _name="Task" map-to="def:keyword"/>
<style id="note" _name="Note" map-to="def:comment"/>
<style id="tag" _name="Tag" map-to="def:string"/>
</styles>
<definitions>
<context id="taskpaper">
<include>
<context id="project" style-ref="project">
<match>^.*:$</match>
</context>
<context id="task" style-ref="task">
<match>^\s*- </match>
</context>
<context id="tag" style-ref="tag">
<match>@\w+(\(.*\))?</match>
</context>
<context id="note" style-ref="note">
<match>^.*$</match> <!-- Everything else -->
</context>
</include>
</context>
</definitions>
</language>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment