Directory

← Back

V-Codemirror

Text field implementation suitable for source code editing

Author

Contributors

Rating

Multi language syntax highlighting and smart editing features for source code editing

Sample code

import org.vaadin.addon.codemirror.CodeMirrorField;

...

CodeMirrorField cmField = new CodeMirrorField();
cmField.setValue("@Widgetset(\"com.vaadin.v7.Vaadin7WidgetSet\")\npublic class FiddleUi extends UI {\n\n	final private static DockerService dockerService = new DockerService();\n	\n	@Override\n	protected void init(VaadinRequest vaadinRequest) {");

VerticalLayout layout = new VerticalLayout();
layout.setSizeFull();
layout.addComponent(cmField);
cmField.setSizeFull();
layout.setExpandRatio(cmField, 1);
setContent(layout);

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

support for gutter removal

Released
2017-06-15
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 8.0+
Browser
N/A

V-Codemirror - Vaadin Add-on Directory

Text field implementation suitable for source code editing V-Codemirror - Vaadin Add-on Directory
Multi language syntax highlighting and smart editing features for source code editing
Online