codemirror live syntax highlighting: extend for {tags}

I have implemented Codemirror http://marijn.haverbeke.nl/codemirror/ to work as a live text editor within an application and it works perfect. The only thing I would love to do is create a custom...

codemirror fails when adding </textarea> tag inside it

I'm using codemirror http://marijn.haverbeke.nl/codemirror/ to let users create their own web templates inside a web application. Codemirror works great, except for the time that users have put a ...

Codemirror 2.2 clear all marks

I'm looking to clear all marks to a codemirror text. The marks have been created calling ret = codemirror.markText(..); histMarks.push(ret); To delete all marks we're clearing each one...

Codemirror - minimum lines number

Anbody does have an solution for a min lines number - in Codemirror? min-height worked for me but do not insert empty lines for the height. JS var editor =...

How to refresh codemirror when it's parent div style becomes display block?

I'm using codemirror with textareas in a tabbed interface, when i'm not in the tab that contains codemirror and then go to it, I get empty white space without line numbers or the cursor, when I...

Using an asynchronous warning source for CodeMirror's lint feature

The examples only show how to implement the JSON and Javascript lint addons with CodeMirror (syntax-highlighting Javascript-based editor), which are synchronous. Unfortunately, there aren't...

How do you append text in CodeMirror

I know you use editor.setValue(""); to set one value but how do you append in CodeMirror? IE: editor.appendText();?

Is it possible to show hidden characters in CodeMirror?

Is it possible to show hidden characters (like Carriage Return character) in Codemirror Text Editor, but I've not found any configuration reference about it in its documentation. Is it possible do this?

Programmatically edit CodeMirror contents without access to object

I'm using Selenium to run automated tests on a page which contains a CodeMirror editor. I don't have access to the object however I do have jQuery available. How can I edit the contents of the...

Codemirror Auto Format after setValue

http://liveweave.com/UxEJ0s I'm using Codemirror for my app. I noticed if I select all the text and press SHIFT+Tab it will auto align my code making it easier to read. Here's an example of what...

Bootstrap tabs with CodeMirror

I have a pretty complex page where I have a number of instances of CodeMirror in hidden tabs within tabs. To then make it even more complex I remember the last active tabs. I've manage to get it...

Is there a way to make a <td> appear when a button is selected and the <td> display is none? (The <td> will have a codeMirror text area in it)

I am having some trouble here. I am developing a button that once selected will run a JavaScript function - ShowColumn() - that will make a table column appear. The table column will at first be...

ember build fails, no such file or directory lstat ...funnel-input_base_path-XXX.tmp/0//index.html

The file it tries to find doesn't exist and neither does the funnel-input_base_path-XXX.tmp folder. It's no use to create one manually as the XXX part is randomly generated. [[email protected]_Dev...

How to set text align and indentation in codemirror editor as it always start in the middle?

I have problems using CodeMirror. When I typed my codes in the textarea, it will start in the middle and not at the most left even after going to next line. Must I modify the...

Can access localhost but virtual host can't be reached

First post on stackoverflow, so thanks in advance for the help. I am having an issue connecting to my virtual host (created in WAMP), though I can access my localhost site with no issue. When I...

Monaco Editor 'onChange' event?

I've just started investigating Monaco to be used as the editor for our internal code playground. And I'm unable to figure out how to create a handler for whenever the text in the editor window...

Codemirror crashing in php mode

I use codemirror in a normal HTML/PHP project and want to write some php code. But when I want to open the php tag like <?php it stops after the "<" sign and doesn't let me type in anymore...

Match list of words all uppercase or all lowercase regex

I'm using CodeMirror to write a simple mode (not sure what kind of regex they use), and was wondering if I had a list of words that I wanted to match, like aaa, bbb, and ccc I could do it with...

CodeMirror Autocomplete if token includes dot

I'm using codemirror as code editor in ASP.NET application, the issue I faced is with Autocomplete if the token includes dot ".", then the highlighting brakes. How can I have dot "." as part of...

Codemirror Clike Mode Doesn't seem to work

I am trying to use CodeMirror in my project with the clike mode for vertex and fragment snippets, but for some reason the syntax highlighting doesn't work for anything but numbers and string...

Disabling scrolling on Code Mirror element

I’m trying to achieve a similar effect on a Code Mirror component that would be achieved by doing overflow: hidden on a div. In practice this means: No visible scroll bars When “scroll...

change height and width of codemirror in angular

i am using angular 7 with latest ngx-codemirror. <ngx-codemirror [(ngModel)]="sql_input" [options]="{lineNumbers: true,theme: 'material',mode: 'markdown'}"></ngx-codemirror> The final looks is...

How do I change default font of Summernote in Django?

So I'm using django-summernote (I'm using Django ver 3.x), and trying to change the default font in the editor. Here's my code. (part of) forms.py: from .models import MyModel class...

Data not merging, Apollo 3 pagination with field policies

Here are my two files. I am trying to mimic the results of this sandbox with my own data: https://codesandbox.io/embed/stoic-haze-ispw2?codemirror=1 Essentially I can see the data was fetched and...

Element heights exceed grid layout limits with use codemirror and xterm.js

I'm trying to put CodeMirror and Xterm.js in a GridLayout like the following code. I'm specifying 1fr 200px 80px for grid-template-rows here and I'm having problems with this. Occurred...

Angular 10 webworker Cannot find name 'Element'. - How to resolve?

So we already had some web workers. But for the purpose of testing these I've removed them all but one, and emptied that one out. We're currently migrating from webpack (using worker-loader) to ng...

Why CodeMirror JavaScript is not defined Uncaught ReferenceError

I didn't find the answer of this error here. I have a Ruby on Rails website and I want to add code editor like CodeMirror. The first thing I did is to add codemirror.js inside assets/javascript...

ngx-codemirror displaying only after click in formarray

I am using @ctrl/ngx-codemirror to input javascript code which is in a form array. But the values in the codemirror is displaying only after i click in the editor. I am aware that we're supposed...

CodeMirror on Vue3 has a problem when setValue is kicked

I'm trying to use CodeMirror on Vue3 and the problem occurs when I call doc.setValue(). The Problem is following: Cursor position is broken when doc.setValue() is called 2. CodeMirror throws...

Where do I put imports that would normally go in main.ts, when I am doing lazy module loading?

In my Angular app, I would like to use the library CodeMirror inside a Lazily Loaded module. The trouble I am having is that the CodeMirror documentation tell me to In your main.ts or at the root...