notepad++ 自定義語法高亮支持 ant design vue

打開 C:\Users\admin\AppData\Roaming\Notepad++目錄下的文件langs.xml

把vue擴展名增加到html裏去,簡單處理。

<Language name="html" ext="html htm shtml shtm xhtml xht hta vue"

Keywords末尾加上:

a-modal a-spin a-button a-steps a-form a-form-item v-show a-input a-select a-upload a-select-option a-textarea a-tree-select v-text,v-html,v-if,v-else,v-else-if,v-for,v-on:,v-bind:,v-model,v-pre,v-cloak,v-once,slot,slot-scope,:is,scope,:key,ref,template,vm.$data,vm.$props,vm.$el,vm.$options,vm.$parent,vm.$root,vm.$children,vm.$slots,vm.$scopedSlots,vm.$refs,vm.$isServer,vm.$attrs,vm.$listeners,vm.$watch,vm.$set,vm.$delete,vm.$on,vm.$once,vm.$off,vm.$emit,vm.$mount,vm.$forceUpdate,vm.$nextTick,vm.$destroy,vm.$isServer,vm.$attrs,vm.$listeners,vm.$watch,vm.$data

 

保存重啓notpad++

 

把 conf,properties文件加入到 perl語言擴展名支持裏,比較好,也能實現高亮。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章