Editor Custom mode with custom CodeMirror rules

can I create a new editor mode, via a plugin, so that I would have standard modes and my own (Preview, Live Preview, Source Code, and Custom Editor(for example)), with my own CodeMirror6 rules (without default obsidian rules)?

just pump