PN editor support
Posted: Thu Jun 18, 2009 5:38 pm
PN(Programmer's Notepad2: http://www.pnotepad.org/) support for Cobra.
This work in progress OK?
Because I cannot operate a trac, I describe below it.
setting: save following code to 'cobra.scheme' and into schemes directory.
tested: portable version for Windows.
issue: cannot automatic lexer select.
improvement hint: http://pnotepad.org/docs/howto/add_support_for_your_language
--- cobra.scheme ---
This work in progress OK?
Because I cannot operate a trac, I describe below it.
setting: save following code to 'cobra.scheme' and into schemes directory.
tested: portable version for Windows.
issue: cannot automatic lexer select.
improvement hint: http://pnotepad.org/docs/howto/add_support_for_your_language
--- cobra.scheme ---
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<Scheme>
<keyword-classes>
<keyword-class name="cobra.key">
use var inherits implements interface override shared enum namespace set get pro objc vari new event except expect extend
partial extern nonvirtual public private abstract struct assert test old mixin must adds const import class cue off internal
as is has while from sig def on yield elif body ensure implies invariant require virtual protected where be callable of inlined
all and any base branch break catch continue do each else end every expect false finally for if ignore in inout
listen nil not on or out pass passthrough post print raise ref return stop success this throw to trace true try using
bool int char float decimal dynamic number same uint
</keyword-class>
<keyword-class name="cobra.init">
init
</keyword-class>
</keyword-classes>
<language name="cobra" title="Cobra" folding="true" foldcomments="true" foldcompact="false">
<lexer name="python" />
<comments line="#" />
<property name="tab.timmy.whinge.level" value="1"/>
<use-keywords>
<keyword key="0" name="Keywords" class="cobra.key"/>
<keyword key="1" name="Keywords" class="cobra.init"/>
</use-keywords>
<use-styles>
<style name="Default" key="32" />
<style name="Whitespace" key="0" class="whitespace" />
<style name="Comment" key="1" class="comment"/>
<style name="Number" key="2" class="number"/>
<style name="String" key="3" class="string"/>
<style name="Single-Quoted String" key="4" class="string"/>
<style name="Keyword" key="5" class="keyword"/>
<style name="Triple Quotes" key="6" fore="7f0000"/>
<style name="Triple Double Quotes" key="7" fore="7f0000"/>
<style name="Class name" key="8" class="class"/>
<style name="Function or method name" key="9" class="function"/>
<style name="Operators" key="10" bold="true"/>
<style name="Identifiers" key="11"/>
<style name="Comment block" key="12" fore="7f7f7f" />
<style name="Unclosed string" key="13" class="string" back="e0c0e0" eolfilled="true" />
<style name="Highlighted Identifiers" key="14" fore="407090" />
<style name="Decorators" key="15" fore="805080" />
</use-styles>
</language>
</Scheme>