【问题标题】:Silverstripe template, html-modeSilverstripe 模板,html 模式
【发布时间】:2011-07-05 07:50:06
【问题描述】:

Trying to get a mode to work with silverstipe templates,但<% end_control %> 打破了缩进,但<% nd_control %> 没有。它一定是"<% end",但我一直不知道如何修复它。

【问题讨论】:

  • 您能否分别提出这两个问题?
  • “tabbing”是指缩进吗?
  • 是的,我的意思是缩进。当然,我会提出两个问题。
  • 这是另一个问题:stackoverflow.com/questions/6583173/…

标签: emacs silverstripe html-mode


【解决方案1】:

我猜这将是绊倒它的部分 end_[a-zA-Z1-9_.]*

我不是 lisp 或正则表达式专家。但我怀疑 end_[:alpha:]+ 应该可以工作。在查看了 emacs 正则表达式文档http://www.emacswiki.org/emacs/RegularExpression

你应该可以不用 _ 或 .如果您想在比赛中包含句号,我认为您需要双反斜杠 \。但是当 SS 在结束模板语句中使用它时,我想不出一个例子。并且下划线应该已经和end_匹配了

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多