CodeMirror Dynamic Syntax Validation

Been trying to decide between using CodeMirror or Ace editor. I've been leaning towards CodeMirror, however there's one feature of Ace that I really like and that is how it does syntax validation. So as I'm typing there can appear a warning or error icon in the left gutter area beside the line number, and when I hover over it it gives me a little description.

Is there any way to get this functionality in CodeMirror? Specifically, I'm using the css mode for CodeMirror.

It'd also be nice to be able to add in my own custom validation.

Thanks.

Answers


see http://codemirror.net/3/demo/widget.html for a nice demo.

but ace have other nice features too. For me deciding factors were multiple cursors and indentGuides


Need Your Help

Interrupting a C function execution and getting back to C++ caller

c++ linux memory-management shared-libraries sigsegv

I currently have a problem implementing the following scenario using the following configuration: GCC 3.4, Linux.

Render a view for a model on first load, not on every change

backbone.js backbone-events backbone-views

I would like to render a view for a model when the model is first fetched but not on every change.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.