Code Editor

Professional code editing with powerful features for Markdown

Overview

AnySlate's code editor is powered by CodeMirror 6, the same editor framework used by developers worldwide in tools like Chrome DevTools, Firefox Developer Tools, and countless other professional applications. This battle-tested foundation ensures a reliable, performant, and feature-rich editing experience.

CodeMirror 6 provides exceptional performance even with large documents, handling files with thousands of lines without lag.

Key Features

Syntax Highlighting

Rich syntax highlighting for all Markdown elements with customizable themes.

Auto-completion

Smart suggestions for links, headers, and common Markdown patterns.

Bracket Matching

Automatically match and highlight brackets, parentheses, and quotes.

Multiple Cursors

Edit multiple locations simultaneously for faster editing.

Line Numbers

Optional line numbers for easy reference and navigation.

Current Line Highlight

Visual indicator showing your current editing position.

Word Wrap

Toggle word wrapping to fit your preferred editing style.

Configurable Tab Width

Set your preferred indentation size (2, 4, or 8 spaces).

Markdown Syntax Highlighting

The editor provides rich syntax highlighting for all Markdown elements, making it easy to identify different content types at a glance.

Headers

H1-H6 headers styled with distinct colors and sizes

# Heading 1

Bold Text

Bold text highlighted with visual emphasis

**bold text**

Italic Text

Italic text shown with subtle styling

*italic text*

Code Blocks

Fenced code blocks with language detection

```javascript

Links & Images

URLs and image references distinctly highlighted

[text](url)

Lists

Ordered and unordered lists with bullet styling

- item

Blockquotes

Quoted text with visual indentation

> quote

Inline Code

Inline code spans with background highlight

`code`

Editor Configuration

Customize the editor to match your preferences. Access these settings via Settings (Cmd/Ctrl + ,) → Editor.

SettingDescriptionOptions
Font FamilyChoose your preferred monospace fontSystem default, JetBrains Mono, Fira Code, etc.
Font SizeAdjust the editor font size12px - 24px
Tab WidthSet indentation size2, 4, or 8 spaces
Auto-indentAutomatically indent new linesOn / Off
Line NumbersShow or hide line numbersOn / Off
Word WrapWrap long lines to fit the viewportOn / Off
Spell CheckEnable browser spell checkingOn / Off

Keyboard Shortcuts

Master these keyboard shortcuts to speed up your Markdown editing workflow.

ActionShortcutDescription
BoldCmd/Ctrl + BWrap selection in **
ItalicCmd/Ctrl + IWrap selection in *
StrikethroughCmd/Ctrl + Shift + XWrap selection in ~~
Inline CodeCmd/Ctrl + EWrap selection in `
LinkCmd/Ctrl + KInsert link syntax
HeadingCmd/Ctrl + 1-6Insert heading level
Unordered ListCmd/Ctrl + Shift + 8Toggle bullet list
Ordered ListCmd/Ctrl + Shift + 7Toggle numbered list
BlockquoteCmd/Ctrl + Shift + .Toggle blockquote
Code BlockCmd/Ctrl + Shift + CInsert fenced code block
UndoCmd/Ctrl + ZUndo last action
RedoCmd/Ctrl + Shift + ZRedo last action

Multiple Cursors

Edit multiple locations simultaneously using multiple cursors. This powerful feature lets you make the same change in multiple places at once.

Add Cursor

Option/Alt + Click

Click anywhere while holding Option (Mac) or Alt (Windows/Linux) to add a cursor

Column Selection

Option/Alt + Shift + Drag

Select a rectangular region of text across multiple lines

Select Next Occurrence

Cmd/Ctrl + D

Select the next occurrence of the current word

Select All Occurrences

Cmd/Ctrl + Shift + L

Select all occurrences of the current selection

Common Use Cases

  • Rename a variable or term across multiple occurrences
  • Add the same prefix or suffix to multiple lines
  • Convert a list of items to a different format
  • Edit repeated patterns like table rows
  • Add or remove indentation on multiple lines

Pro Tips

Quick Formatting

Select text and use keyboard shortcuts to quickly wrap it in formatting. For example, select a word and press Cmd/Ctrl + B to make it bold.

Bracket Auto-close

When you type an opening bracket, parenthesis, or quote, the editor automatically inserts the closing character and places your cursor in between.

Line Jumping

Press Ctrl + G to open the "Go to Line" dialog. Enter a line number to jump directly to that line in your document.

Font Ligatures

If you use a font with programming ligatures (like Fira Code or JetBrains Mono), the editor will display them automatically. Ligatures combine characters like ->, =>, and != into single, elegant symbols.

Enable or disable ligatures in Settings → Editor → Font Ligatures.