通過package control,搜尋brackethighlighter安裝即可。
pregerence > package settings > brackethighlighter > bracket settings - user
對應的關係:
{} - curly
() - round
- square
<> - angle
「」 『』 - quote
style: solid、underline、outline、highlight
,找到sublime text3安裝目錄下的packages中的color scheme - default.sublime-package 類試c:\program files\sublime text 3\packages\color scheme - default.sublime-package// this particular style is used to highlight
// unmatched bracekt pairs. it is a special
// style.
"unmatched": ,
// user defined region styles
"curly": ,
"round": ,
"square": ,
"angle": ,
"tag": ,
"single_quote": ,
"double_quote": ,
"regex":
},}
新增字尾名color scheme - default.sublime-package.zip,解壓找到monokai.tmtheme,拉出來修改。
將上邊的**新增到monokai.tmtheme中,和上邊的dict並列排即可。namekey>
bracket defaultstring>
scopekey>
brackethighlighter.defaultstring>
settingskey>
foregroundkey>
#ffffffstring>
backgroundkey>
#a6e22estring>
dict>
dict>
namekey>
bracket unmatchedstring>
scopekey>
brackethighlighter.unmatchedstring>
settingskey>
foregroundkey>
#ffffffstring>
backgroundkey>
#ff0000string>
dict>
dict>
namekey>
bracket curlystring>
scopekey>
brackethighlighter.curlystring>
settingskey>
foregroundkey>
#ff00ffstring>
dict>
dict>
namekey>
bracket roundstring>
scopekey>
brackethighlighter.roundstring>
settingskey>
foregroundkey>
#e7ff04string>
dict>
dict>
namekey>
bracket squarestring>
scopekey>
brackethighlighter.squarestring>
settingskey>
foregroundkey>
#fe4800string>
dict>
dict>
namekey>
bracket anglestring>
scopekey>
brackethighlighter.anglestring>
settingskey>
foregroundkey>
#02f78estring>
dict>
dict>
namekey>
bracket tagstring>
scopekey>
brackethighlighter.tagstring>
settingskey>
foregroundkey>
#ffffffstring>
backgroundkey>
#0080ffstring>
dict>
dict>
namekey>
bracket quotestring>
scopekey>
brackethighlighter.quotestring>
settingskey>
foregroundkey>
#56ff00string>
dict>
dict>
然後再降修改完成的檔案放到壓縮包color scheme - default.sublime-package.zip裡邊,完事後改名color scheme - default.sublime-package放回c:\program files\sublime text 3\packages。
jquery highlight高亮外掛程式使用
jquery highlight官網 該外掛程式可以方便的進行高亮處理。示例 this is a test head input the search key.click 搜尋 button.this is a test body this is a test,a test,test,tes,te,...
sublime安裝vue高亮
1.準備語法高亮外掛程式vue syntax highlight。解開壓縮包vue syntax highlight master,其內所有檔案備用。2.將vue syntax highlight植入sbulime。進入sublime,選擇選單項 preferences browse package...
vue搜尋關鍵字使文字高亮
思路 通過正則regexp進行全域性匹配,將符合條件的元素通過replace替換成為html 片段 封裝成自定義指令在main.js裡引入增加可復用性 import vue from vue function hightlight el,binding else el.innerhtml str v...