A VSCode extension that adds syntax highlighting for French guillemets and common bracket pairs in Markdown files, with support for markdown formatting inside brackets.
This extension provides distinct syntax highlighting for:
- French guillemets:
«text» - Square brackets:
[text] - Parentheses:
(text) - Curly braces:
{text} - Angle brackets:
<text>
Each bracket type gets its own scope, allowing you to customize colors independently.
All bracket types support markdown formatting inside them:
- Bold text:
«**bold text**»,[**bold text**],(**bold text**) - Italic text:
«*italic text*»,[*italic text*],(*italic text*) - Inline code:
«code»,[code],(code) - Strikethrough:
«~~strikethrough~~»,[~~strikethrough~~],(~~strikethrough~~)
Interactive Color Picker - No manual JSON editing required! Access via Command Palette (Cmd+Shift+P / Ctrl+Shift+P) → "Markdown Guillemets: Customize Colors"
Colors work out-of-the-box with sensible defaults. No configuration needed for basic usage.
Install from VS Code Marketplace or search for "Markdown French Guillemets" in the VS Code Extensions view.
- Download the
.vsixfile from Releases - In VS Code:
Extensions: Install from VSIX...command - Select the downloaded
.vsixfile
- Clone this repository
- Run
vsce package(requiresnpm install -g @vscode/vsce) - Install the generated
.vsixfile as above
French quotes: «Bonjour le monde»
Square brackets: [Important note]
Parentheses: (Additional context)
Curly braces: {Configuration option}
Angle brackets: <Required field>Bold emphasis: «**This is bold**» and [**also bold**]
Italic text: «*This is italic*» and (*also italic*)
Inline code: «`console.log()`» and {`npm install`}
Strikethrough: «~~deprecated~~» and <~~old method~~>Complex example: «**Bold** and *italic* with `code` and ~~strikethrough~~»
Nested formatting: [**Bold** text with (*italic parentheses*) inside]
Technical docs: {`config.json`} contains «**important**» settingsDocumentation: [**API Reference**] - see «*Getting Started*» guide
Code comments: // TODO: {**refactor this**} - (*performance issue*)
Notes: «Remember to run `npm test` before ~~deployment~~ **release**»Use the built-in color picker for easy customization:
- Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) - Type:
Markdown Guillemets: Customize Colors - Choose what to customize:
- Individual punctuation colors (guillemets, brackets, parentheses, braces, angles)
- Preset themes (Ocean Breeze, Forest Glow, Sunset Vibes, Royal Purple, Professional)
- Reset to defaults
When customizing individual colors:
Step 1: Choose color family (Red, Blue, Green, Purple, Yellow, Pink, Cyan, Orange)
Step 2: Choose intensity (300 - Light, 500 - Medium, 700 - Dark)
Changes apply instantly - no restart needed!
- Default: Original extension colors (recommended)
- Colorblind Friendly: High contrast colors that work for all types of color vision
- Ocean Breeze: Cool blues and teals
- Forest Glow: Natural greens and earth tones
- Sunset Vibes: Warm oranges and reds
- Royal Purple: Rich purples and magentas
- Professional: Subtle, business-appropriate colors
For fine-grained control, you can manually edit VS Code settings:
- Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) - Type:
Preferences: Open Settings (JSON) - Add custom token color rules
- Guillemets «»: Green text (#22c55e) with bold symbols (#dc2626)
- Square brackets []: Blue text (#3b82f6) with bold symbols (#a855f7)
- Parentheses (): Orange text (#f97316) with bold symbols (#06b6d4)
- Curly braces {}: Yellow text (#eab308) with bold symbols (#dc2626)
- Angle brackets <>: Pink text (#ec4899) with bold symbols (#9333ea)
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "string.quoted.guillemets.markdown",
"settings": {
"foreground": "#22c55e" // Green text inside «guillemets»
}
},
{
"scope": "punctuation.definition.guillemets.markdown",
"settings": {
"foreground": "#dc2626", // Red color for the actual « and » symbols
"fontStyle": "bold"
}
}
// ... additional rules for other bracket types
]
}string.quoted.guillemets.markdown- Text between guillemets«like this»punctuation.definition.guillemets.markdown- The guillemets themselves«»string.quoted.square.markdown- Text between square brackets[like this]punctuation.definition.square.markdown- The square brackets themselves[]string.quoted.round.markdown- Text between parentheses(like this)punctuation.definition.round.markdown- The parentheses themselves()string.quoted.curly.markdown- Text between curly braces{like this}punctuation.definition.curly.markdown- The curly braces themselves{}string.quoted.angle.markdown- Text between angle brackets<like this>punctuation.definition.angle.markdown- The angle brackets themselves<>
- Colors not showing: Ensure you're editing a
.mdfile and the extension is enabled - Custom colors not applying: Check that your JSON syntax is valid in settings
- Conflicts with themes or existing customizations:
Cmd+Shift+P→ "Markdown Guillemets: Customize Colors"- Choose "Preset themes" → "Default" (this will override existing settings)
Cmd+Shift+P→ "Developer: Reload Window" to refresh
- Performance issues: For very large files, consider disabling the extension temporarily
See CONTRIBUTING.md for development setup and contribution guidelines.
See ROADMAP.md for planned features and long-term vision.
MIT