Can i display hidden symbols like $nbsp; and others

Hi
I want to use codeMirror as HTML editor
I need to display all symbols
Something like view_source mode - to display full html

CodeMirror.fromTextArea(
            document.getElementById("editor"),
            {
                lineNumbers: true,
                foldGutter: true,
                htmlMode: true,
                mode: {
                    name: 'htmlmixed'
                },
                gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter']

            });

Thanks a lot!

Also try in codemirror v6

Same problem

Do not see   in editor(((

It’s a text editor. If your document contains a non-breaking space character, it won’t automatically display that as the equivalent HTML entity, no. Though I guess you could write an extension that does something like that.