Sublime Text Demo Diary

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.