Thanks to danielbeck, the part I was missing was to use the codemirror-mode:
<f:textarea name="parameter.description"
value="${instance.description}"
codemirror-mode="${app.markupFormatter.codeMirrorMode}"
codemirror-config="${app.markupFormatter.codeMirrorConfig}"
previewEndpoint="/markupFormatter/previewDescription" />

I have made it part of the following pull request:
https://github.com/jenkinsci/validating-string-parameter-plugin/pull/3

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/51b82efb-09c7-4b48-8545-317a1f248c3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to