Damson/assets/syntax/gemtext.xml
astar76 11c1a7808b Build the syntax definitions into the app
Highlighting relied on the syntax-highlighting package, so removing it
left every file uncoloured. The 462 definitions now live in assets/syntax
and are compressed into the binary at build time, unpacked per language
when used. User .xml files still add to or replace them, and the licence
each file declares is recorded in assets/syntax/LICENSES.md.

Also moves files to the trash without needing gio.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 20:35:27 -06:00

1 line
No EOL
1.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Gemtext" version="2" author="Cuche ([email protected])" kateversion="5.62" section="Markup" extensions="*.gmi;*.gemini" mimetype="text/gemini" license="MIT"><highlighting><contexts><context name="main" attribute="Normal Text"><RegExpr String="^(#{1,3})\s" attribute="Heading" context="heading" column="0"/><DetectChar char=">" attribute="Quote" context="quote" column="0"/><StringDetect String="* " attribute="List Bullet" column="0"/><RegExpr String="^=>\s*\S+" attribute="Link URL" context="#pop!link-description" column="0"/><StringDetect String="```" attribute="Preformatted Text" context="#pop!preformatted-region" beginRegion="preformatted-block" column="0"/></context><context name="heading" attribute="Heading" lineEndContext="#pop"/><context name="link-description" attribute="Link Description" lineEndContext="#pop"/><context name="preformatted-region" attribute="Preformatted Text" noIndentationBasedFolding="1"><StringDetect String="```" attribute="Preformatted Text" context="#pop" endRegion="preformatted-block" column="0"/></context><context name="quote" attribute="Quote" lineEndContext="#pop"/></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Heading" defStyleNum="dsFunction" bold="1"/><itemData name="Quote" defStyleNum="dsVariable"/><itemData name="List Bullet" defStyleNum="dsSpecialString" bold="1"/><itemData name="Link URL" defStyleNum="dsOthers" underline="1" spellChecking="0"/><itemData name="Link Description" defStyleNum="dsDocumentation"/><itemData name="Preformatted Text" defStyleNum="dsInformation" spellChecking="0"/></itemDatas></highlighting></language>