Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Apparently, the CoffeeScript lexer is compiled in Scintilla but not used by SciTE. I mean that there is no <code>coffeescript.properties</code> file or any other file that would refer to the lexer. You cat try to create your own and set the lexer for file extension you use to <code>coffeescript</code>:</p> <pre><code># Define SciTE settings for Coffeescript files. file.patterns.coffeescript=*.coffee filter.coffeescript=Coffeescript (coffee)|$(file.patterns.coffeescript)| lexer.$(file.patterns.coffeescript)=coffeescript ... </code></pre> <p>Then you would define keywords, coloring styles and other stuff supported by the lexer - check out its sources. You can get inspiration in <code>cpp.properties</code>, e.g. (The lexer for C/C++ and similar languages is called <code>cpp</code>.) Here are supported lexical states:</p> <pre><code>val SCE_COFFEESCRIPT_DEFAULT=0 val SCE_COFFEESCRIPT_COMMENT=1 val SCE_COFFEESCRIPT_COMMENTLINE=2 val SCE_COFFEESCRIPT_COMMENTDOC=3 val SCE_COFFEESCRIPT_NUMBER=4 val SCE_COFFEESCRIPT_WORD=5 val SCE_COFFEESCRIPT_STRING=6 val SCE_COFFEESCRIPT_CHARACTER=7 val SCE_COFFEESCRIPT_UUID=8 val SCE_COFFEESCRIPT_PREPROCESSOR=9 val SCE_COFFEESCRIPT_OPERATOR=10 val SCE_COFFEESCRIPT_IDENTIFIER=11 val SCE_COFFEESCRIPT_STRINGEOL=12 val SCE_COFFEESCRIPT_VERBATIM=13 val SCE_COFFEESCRIPT_REGEX=14 val SCE_COFFEESCRIPT_COMMENTLINEDOC=15 val SCE_COFFEESCRIPT_WORD2=16 val SCE_COFFEESCRIPT_COMMENTDOCKEYWORD=17 val SCE_COFFEESCRIPT_COMMENTDOCKEYWORDERROR=18 val SCE_COFFEESCRIPT_GLOBALCLASS=19 val SCE_COFFEESCRIPT_STRINGRAW=20 val SCE_COFFEESCRIPT_TRIPLEVERBATIM=21 val SCE_COFFEESCRIPT_HASHQUOTEDSTRING=22 val SCE_COFFEESCRIPT_COMMENTBLOCK=22 val SCE_COFFEESCRIPT_VERBOSE_REGEX=23 val SCE_COFFEESCRIPT_VERBOSE_REGEX_COMMENT=24 </code></pre> <p>All <code>.properties</code> files are loaded automatically by the line <code>import *</code> from <code>SciTEGlobal.properties</code>. You can also add <code>Coffeescript|coffee||\</code> to <code>menu.language</code> to get a new menu item in <code>Languages</code> and/or <code>*.coffee</code> to <code>source.files</code> to see the extnsion in the File Open dialog.</p> <p>It is strange that the author did not provide the <code>.properties</code> file with the lexer. It can be that the JavaScript lexer can be used instead. You could ask about it in the <a href="http://groups.google.com/group/scite-interest/" rel="nofollow">SciTE mailing list</a>.</p> <p>--- Ferda</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload