I'm using a Sublime snippet to create a Latex state machine template. However, it does nothing (when I type "stmach" and press tab, stmach
disappears but the Latex code isn't included). I don't understand why, as all my other snippets are working fine.
If I remove some lines in the snippet, it works, but I need the whole block :/
<snippet>
<content><![CDATA[
egin{center}
egin{tikzpicture}[shorten >=1pt,node distance=4.5cm,on grid,auto]
ikzstyle{every state}=[draw=blue!50,very thick,fill=blue!20] % Node color
ode[state,initial,initial text=reset, initial where=below] (configuration) {$conf$}; % Node name and position
ode[state] (init) [below right=of configuration] {$init$};
path[->] % Arrow
(configuration)
edge [bend left] node {finishConfiguration=1} (init)
(init)
edge [bend left] node {} (configuration);
end{tikzpicture}
end{center}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>stmach</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.tex</scope>
Note that the Latex code works without any error or warning.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…