On Sat, May 9, 2009 at 2:57 AM, Deniz Dogan <deniz.a.m.do...@gmail.com> wrote:
>
> Hi
>
> I'm writing a little mode for Yi which will only do syntax
> highlighting. What I'd like to know is how I can define my own text
> styles, i.e. not use commentStyle etc. from the user's theme. All of
> the other modes seem to use StyleName as the "Tokens", but since I
> want my own custom styles, independent of the user theme, I can't
> really use that AFAICS.

The stylenames are really functions "Theme -> Style", so you can construct
a theme-independent style by using "const myConstantStyle".

Hope that helps,
JP.

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to