CMIContent Marketing InstituteContent directory

News · General · Archive

Codemirror Inline Widget Demo

Home News

.CodeMirror {border: 1px solid black;} .lint-error {font-family: arial; font-size: 70%; background: #ffa; color: #a00; padding: 2px 5px 3px; } .lint-error-icon {color: white; background-color: red; font-weight: bold; border-radius: 50%; padding: 0 3px; margin-right: 7px;}

CodeMirror

Home Manual Code

Inline Widget

Inline Widget Demo

var widgets = [] function updateHints() { editor.operation(function(){ for (var i = 0; i This demo runs JSHint over the code in the editor (which is the script used on this page), and inserts line widgets to display the warnings that JSHint comes up with.

More in Archive · More in General · More in News