提交 cbbee982 编写于 作者: K Kohsuke Kawaguchi

unifying the format

上级 76c6982a
......@@ -84,7 +84,7 @@ public abstract class UISample implements ExtensionPoint, Action, Describable<UI
public URL resolve() {
return UISample.this.getClass().getResource(
name.endsWith(".jelly") ? UISample.this.getClass().getSimpleName()+"/"+name : name);
(name.endsWith(".jelly") || name.endsWith(".groovy")) ? UISample.this.getClass().getSimpleName()+"/"+name : name);
}
/**
......
def l=namespace(lib.LayoutTagLib)
def st=namespace("jelly:stapler")
l.layout(title:_("Syntax Highlighted Text Area")) {
l.main_panel {
h1(_("Syntax Highlighted Text Area"))
namespace("/lib/samples").sample(title:_("Syntax Highlighted Text Area")) {
p("CodeMirror can be used to turn ordinary text area into syntax-highlighted content-assistable text area")
// this loads the necessary JavaScripts, if it hasn't loaded already
......@@ -34,5 +30,4 @@ l.layout(title:_("Syntax Highlighted Text Area")) {
w.setAttribute("style","border:1px solid black; margin-top: 1em; margin-bottom: 1em")
}
""")
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册