Sublime Forum

Change Color of Text With Plugin

#1

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 :smile:

Manuel

0 Likes