On Sun, Nov 2, 2014 at 1:57 AM, David McNab <[email protected]> wrote:

> Is there a straightforward way of assigning existing syntax colouring
> schemes to unknown file extensions?

There is now :-)

Rev f03f759 adds one line to the colorizer init
​code to use the new g.app.delegate_language_dict.  For now, this dict is
defined as follows:

    self.delegate_language_dict = {
        # Keys are new language names.
        # Values are existing languages in leo/modes.
        "less":        "css",
        "hbs":         "html",
        "handlebars":  "html",
    }

Scripts or plugins may add items to this dict as they please.

Here is the checkin log::

QQQ
Allow colorizing for languages to be delegated to another language:
- Added g.app.delegate_language_dict, with three entries for David McNab.
- jEditColorizer.nameToRuleSetName now replaces the original language name
with the delegated name.
QQQ

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to