Sublime Text Demo Diary
Always heard that sublime is very useful, decisive under the trial. ST2 speed is slow, ST3 speed is greatly improved. Just ST3 can't try it. Determined to be proud of ...
Sublime has powerful custom features such as Snippets,command,key-binding,tmlanguage,tmtheme.
Because the main write C, C + + but accustomed to automatic macro write comments, but found that St has no time macro constants. So I had this little makeover ...
See the familiar automatic time! , by the way to write the next time the transformation results!
###########################################################################
In this way, usually with St Open text documents, you can see the colorful effect. Do not rely on other special document formats
Next, write down the methods used in this transformation:
Studied and found that ST3 did not provide a default edit object when using Begin_edit (). So you need to activate the incoming Edit object by command or key-binding.
Because only an edit object is available to modify the buffer data.
So-so ...........
Here is the corresponding processing method and processing thread —————————————— is also very simple:
Use a custom macro name in the snapshot, and then replace the corresponding custom constant when the processing thread is activated. OK, you are done ...
One of the problems here is that my activation is to activate the replacement every time there is a change. The efficiency is lower ....... .....
Which Daniel has a better way to welcome enlighten!
Finally, say one: I hook the default text syntax to my own grammar file. This allows you to use the coloring files I wrote myself.
Then, you can see the colorful text document.
Welcome Daniel to make suggestions! ##################################################################
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Sublime Text Demo Diary