Code Block

approved

by Patrik Lindefors

Convert text into code blocks with automatic language detection.

37 stars13,850 downloadsUpdated 1y agoMIT
View on GitHub

Code Block Plugin

This plugin converts selected text or pasted text into a code block with automatic programming language detection. The languages that is detectable can be selected in the plugin settings. The language detection is provided by highlight.js and is in no means perfect, but it works most of the time. If it guesses wrong, remove that language from the list and try again.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.