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>In order to set the color of a <a href="http://www.sublimetext.com/docs/3/api_reference.html#sublime.Region" rel="nofollow"><code>Region</code></a> of text, you'll need to have a customized <a href="http://docs.sublimetext.info/en/latest/extensibility/syntaxdefs.html#scopes" rel="nofollow">scope selector</a> in your color scheme. Then, once you've chosen the text you want to highlight and converted it to a Region, you can use the <code>add_regions()</code> method of <a href="http://www.sublimetext.com/docs/3/api_reference.html#sublime.View" rel="nofollow"><code>sublime.View</code></a> (accessible within your <a href="http://www.sublimetext.com/docs/3/api_reference.html#sublime_plugin.TextCommand" rel="nofollow"><code>sublime_plugin.TextCommand</code></a> subclass as <code>self.view</code>) to add the regions to the view and assign a scope to them. The regions should then be highlighted according to your color scheme.</p>

python sublimetext3 sublime-text-plugin