- Which languages can it detect?
- It detects Python, JavaScript, Rust, Go, C++, SQL, and Bash using multi-line scoring heuristics. It checks shebang lines first (#!/usr/bin/python), then scores based on syntax patterns like def, fn, func, #include, SELECT, and more. Single-line fallback heuristics cover additional cases.
- What if it detects the wrong language?
- Detection uses conservative scoring (minimum 2 points from multiple patterns) to avoid false positives. When detection confidence is low, the code block is left without a tag rather than guessing wrong. You can always add the tag manually after fixing.
- Does it fix anything else besides code blocks?
- Yes. Code block fixing is one of five fix plugins that run together. The full pipeline also repairs heading levels, aligns tables, cleans lists, removes empty paragraphs, and strips AI filler phrases.
- Can I use this for code from Copilot or other AI coding tools?
- Yes. Any source that produces code blocks without language tags will benefit — ChatGPT, Claude, Gemini, Copilot, exported Markdown files, and more.