How to write code blocks with sublime
Sep 11, 2017 am 09:47 AM
sublime
code
write
今天在用canvas绘图时,看到有许多相同的代码,就想介绍sublime里面为了加快代码编写,而采用代码片段。
这里只写我了解的。其他需要,请读者自行了解。
打开位置,见下图:
-
打开页面
例子
<How to write code blocks with sublime> <content> <![CDATA[ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>${1}</title> </head> <body> <canvas id="demo"> </canvas> <script> (function() { var canvas = document.getElementById('demo'); canvas.width = ${2:agewg}; canvas.height = ${3}; canvas.style.border = '1px solid #000'; var ctx = canvas.getContext('2d'); ${4} ctx.stroke(); })(); \$(function() { }); </script> </body> </html> ]]> </content> <!-- Optional: Set a tabTrigger to define how to trigger the How to write code blocks with sublime --> <tabTrigger>cans</tabTrigger> <!-- Optional: Set a scope to limit where the How to write code blocks with sublime will trigger --> <!-- <scope>source.python</scope> --></How to write code blocks with sublime>下面图片和上面代码块一样的内容,为了说明清楚,加的图片:
Copy after login
保存
输入快捷键
The above is the detailed content of How to write code blocks with sublime. For more information, please follow other related articles on the PHP Chinese website!
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot tools Tags

Hot Article
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

What should I do if the notepad file is too large to open?

What software is good for python programming?

How to open html files on mobile phone
