Home Download Buy Blog Forum Support

Change Color of Text With Plugin

Change Color of Text With Plugin

Postby manuelh9r on Mon Nov 07, 2011 9:46 am

Hi all,

I'm new in plugin development for Sublime Text. I have a specific question:

Is there a way to change or add a scope/scope name in a given region?
Put it another way, is it possible to dynamically change the color of some text with the help of the plugin?

If you wonder why someone wants to do this:
I want to create a Personal Wiki plugin for me. In a folder I create *.wiki files. In the
Wiki files I link to another Wiki file with the WikiWord Syntax.
If I navigate the WikiWord to an existing *.wiki File the file is opened.
If I navigate the WikiWord to an non-existing *.wiki File the file is created and opened.

It is necessary to color the WikiWord that links to existing files differently than
the WikiWord that links to non-existing files.

I hope there is a way to do this, but I couldn't figure it out how to do it with the current API.
Your help is very appreciated :)

Manuel
manuelh9r
 
Posts: 2
Joined: Mon Nov 07, 2011 8:46 am

Return to Plugin Development

Who is online

Users browsing this forum: extempore and 5 guests