I tried to make a schemedef for plain text files, to utilize the new XML API files. The point here is to be able to use auto-complete in regular *.txt files. But as soon as I pick this schemedef for *.txt files, the word wrapping gets all wrong, wrapping words arbitrary and keeping whitespace at the beginning of new lines. Example
Word wrapping like
this is common.
Is there a quick fix?
Here's my attempt at a schemedef file:
<?xml version="1.0" ?>
<Scheme>
<keyword-classes>
<keyword-class name="test_keywords">
Testing
</keyword-class>
</keyword-classes>
<schemedef name="test" title="Test" version="0.1" casesensitive="true" braces="{[]}" >
<strings>
<stringtype id="0" start=""" end=""" multiline="false" />
</strings>
<numbers start="[0-9]" content="[0-9,\.]" />
<comments>
<line start="#" />
<block start="===" end="===" />
</comments>
<lexer name="test" />
<use-styles>
<style name="Default" key="32" />
<style name="Line Comment" key="1" class="comment" fore="993333" />
<style name="Block Comment" key="2" class="comment" underline="true" fore="000000" />
<style name="Number" key="4" class="number" fore="330000" />
<style name="Keywords" key="5" class="keyword" fore="003300" />
<style name="String" key="10" class="string" back="f9f9f9" fore="111111" />
</use-styles>
<use-keywords>
<keyword key="0" name="Keywords" class="test_keywords"/>
</use-keywords>
</schemedef>
</Scheme>