Skip to content

bwat47/joplin-codeblock-autocomplete

Repository files navigation

Note

This plugin was created entirely with AI tools

Codeblock Autocomplete

Provides auto-complete when creating fenced code blocks.

Codemirror 6 only, legacy editor is not supported.

example

Usage

Typing an opening fence (three+ backticks or three+ tildes) will trigger the auto-complete list by default. Selecting a language will complete the code block (adding the language and closing fence).

  • Specifying a lanauge that's not in the list (and has no matches) will show "Custom language" and will use the specified language as-is.

  • Supports nested code blocks (when the language dropdown is enabled): enter more than three fence characters will close the block with the same number of fence characters as the opening block.

  • If language auto-complete is disabled, typing exactly three backticks or tildes immediately inserts the closing fence and leaves the cursor at the end of the opening fence so you can type a language or press Enter.

Settings

Enable language auto-complete - Toggle the language dropdown for code fences. When disabled, typing exactly three backticks or tildes inserts a closing fence immediately without opening the dropdown.

Autocomplete languages - Comma-separated list of language identifiers to show in the autocomplete menu.

About

Auto-Completes code fences in the markdown editor (with optional dropdown for language auto-complete)

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors