Sublime text change text color
<p>I am currently trying to extract information (manually) from a text file. The text file has a decent format (parsable), but it contains something like 'random chars'. These random chars are not completely random, by running an algorithm on them I am able to collect information. I am giving each char a positive integer.</p>

<p>The question is whether or not I can write a sublime text 3 plugin that will help me see those chars.</p>

<p>I would like to change the colour of those chars.</p>

<p>Note: there can be a char in the same string with 2 colours. The colour depends on of the position.</p>

<p>Can such a plugin be written for sublime text 3? If not what can I use instead? The algorithm that gives each char a score is written in python.</p>

<p>While I don't have any experience working with the Sublime API directly, I've had plugins that highlight things in my files with a rectangle/outline.  It appears from the <a href="https://www.sublimetext.com/docs/3/api_reference.html" rel="nofollow">api reference</a> that Regions are used to handle this.  There is an add_regions() function that you may want to look into.  The reference lists Packages/Default/mark.py as an example plugin that uses this function.</p>

<p>As for changing foreground specifically, the last post <a href="https://forum.sublimetext.com/t/add-regions-swaps-background-and-foreground/3587/5" rel="nofollow">in this thread</a> suggests that it is not possible.</p>

python sublimetext3 sublime-text-plugin