Hexo的自定义配置
vscode 代码片段配置像 HTML 一样, hexo 可以自定义很多标注性质的词法来渲染不容类型的信息进行展示, 而像我这样的懒人, 一般不乐意一直不停的敲那些一成不变的代码片段, 所以在 blog 根目录下建立一个隐藏文件夹 .vscode, 在这个文件夹内新建文件 snippets.code-snippets 可以定义更短的代码来触发代码片段, 方便内容编辑.
所以现在我正在使用的 blog 所拥有的代码片段用 mermaid 图展示就是:
stateDiagram-v2
	direction LR
	[*]-->BBlock
	[*]-->ThmBlock
	[*]-->RefBlock
    state BBlock {
		direction LR
        Mermaid: >mermaid
		MermaidDesc: mermaid图
		Bubble: >bubble
		BubbleDesc: 用来显示鼠标悬停信息
		Mermaid-->MermaidDesc
		Bubble-->BubbleDesc
    }
    state ThmBlock {
		direction LR
        Def: >def
		DefDesc: 定义区块
		Thm: >thm
		ThmDesc: 定理区块
		Lemma: >lem
		LemmaDesc: 引理区块
		Hint: >hint
		HintDesc: 提示, 折叠消息类
		Ques: >ques
		QuesDesc: 问题区块
		Example: >example
		ExampleDesc: 例子区块
		Otherproof: >otherproof
		OtherproofDesc: 对于多种证法的证明使用tab页
		Def-->DefDesc
		Thm-->ThmDesc
		Lemma-->LemmaDesc
		Hint-->HintDesc
		Ques-->QuesDesc
		Example-->ExampleDesc
		Otherproof-->OtherproofDesc
    }
    state RefBlock {
		direction LR
        Label: >label
		LabelDesc: ...





