Syntax highlighting for Mustache templates embedded in TypeScript and JavaScript strings.
This extension adds syntax highlighting for Mustache expressions ({{variable}}, {{#section}}, etc.) directly in your TypeScript/JavaScript strings, making your code more readable and maintainable.
- âś… Variables:
{{name}},{{user.email}} - âś… Sections:
{{#items}}...{{/items}} - âś… Inverted sections:
{{^items}}...{{/items}} - âś… Comments:
{{! comment }} - âś… Partials:
{{>header}}
- TypeScript (
.ts,.tsx) - JavaScript (
.js,.jsx)
The extension works in:
- String literals:
"{{name}}" - Template literals:
`{{name}}` - Multiline strings
The extension is fully customizable through VS Code settings.
| Setting | Type | Default | Description |
|---|---|---|---|
mustacheInline.colors.brackets |
string | #C586C0 |
Color for braces {{ and }} |
mustacheInline.colors.keywords |
string | #C586C0 |
Color for control keywords #, ^, / |
mustacheInline.colors.variables |
string | #9CDCFE |
Color for variables and names |
mustacheInline.colors.embedded |
string | #4EC9B0 |
Color for complete Mustache zone |
mustacheInline.fontStyle.brackets |
string | bold |
Font style for braces |
mustacheInline.fontStyle.keywords |
string | bold |
Font style for keywords |
- Open settings:
Ctrl+,(Windows/Linux) orCmd+,(Mac) - Search for "Mustache Inline"
- Modify colors according to your preferences
{
"mustacheInline.colors.brackets": "#FF6B6B",
"mustacheInline.colors.keywords": "#4ECDC4",
"mustacheInline.colors.variables": "#FFE66D",
"mustacheInline.colors.embedded": "#95E1D3",
"mustacheInline.fontStyle.brackets": "bold",
"mustacheInline.fontStyle.keywords": "bold italic"
}{
"mustacheInline.colors.brackets": "#C586C0",
"mustacheInline.colors.keywords": "#C586C0",
"mustacheInline.colors.variables": "#9CDCFE",
"mustacheInline.colors.embedded": "#4EC9B0"
}{
"mustacheInline.colors.brackets": "#89DDFF",
"mustacheInline.colors.keywords": "#C792EA",
"mustacheInline.colors.variables": "#82AAFF",
"mustacheInline.colors.embedded": "#8BD5CA"
}{
"mustacheInline.colors.brackets": "#F78C6C",
"mustacheInline.colors.keywords": "#FF5370",
"mustacheInline.colors.variables": "#FFCB6B",
"mustacheInline.colors.embedded": "#C3E88D"
}| Command | Description |
|---|---|
Mustache Inline: Apply Colors |
Manually reapply configured colors |
To execute a command: Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac)
const template = `
<h1>{{title}}</h1>
{{#users}}
<div class="user">
<span>{{name}}</span>
<span>{{email}}</span>
</div>
{{/users}}
{{^users}}
<p>Aucun utilisateur</p>
{{/users}}
`;const greeting = "Hello {{user.name}}, you have {{notifications}} notification(s).";
const html = `
<div>
{{! This is a comment }}
{{>header}}
<main>{{content}}</main>
{{>footer}}
</div>
`;- Copy the extension folder to
.vscode/extensions/mustache-inline/ - Reload VS Code:
Ctrl+Shift+P→ "Developer: Reload Window"
The extension is automatically loaded if located in the .vscode/extensions/ folder of your workspace.
- Check that the extension is activated: open debug console (
Help→Toggle Developer Tools) - Look for the message: "Mustache Inline Highlighter est activé"
- Execute manually:
Ctrl+Shift+P→ "Mustache Inline: Apply Colors" - Reload window:
Ctrl+Shift+P→ "Developer: Reload Window"
- Wait a few seconds (application is automatic)
- If necessary, execute "Mustache Inline: Apply Colors"
- Verify that hexadecimal values are valid (e.g.,
#FF0000)
If you have other Mustache highlighting extensions, disable them to avoid conflicts:
Ctrl+Shift+X→ Extensions- Search for Mustache extensions
- Disable conflicting extensions
This extension is developed for internal use. For any suggestions or bugs:
- Check that the issue doesn't already exist
- Provide a code example reproducing the problem
- Include your configuration (
mustacheInline.*settings)
Internal use - All rights reserved
- 🎉 Initial release
- ✨ Syntax highlighting for Mustache in TS/JS strings
- ⚙️ Complete color and style configuration
- 🎨 Custom theme support
- đź”§ Manual reapplication command
Enjoy coding with beautiful Mustache templates! 🎨✨
Coloration syntaxique pour les templates Mustache intégrés dans les chaînes de caractères TypeScript et JavaScript.
Cette extension ajoute la coloration syntaxique pour les expressions Mustache ({{variable}}, {{#section}}, etc.) directement dans vos strings TypeScript/JavaScript, rendant votre code plus lisible et maintenable.
- âś… Variables :
{{name}},{{user.email}} - âś… Sections :
{{#items}}...{{/items}} - ✅ Sections inversées :
{{^items}}...{{/items}} - âś… Commentaires :
{{! commentaire }} - âś… Partials :
{{>header}}
- TypeScript (
.ts,.tsx) - JavaScript (
.js,.jsx)
L'extension fonctionne dans :
- Les string literals :
"{{name}}" - Les template literals :
`{{name}}` - Les strings multilignes
L'extension est entièrement personnalisable via les paramètres VS Code.
| Paramètre | Type | Défaut | Description |
|---|---|---|---|
mustacheInline.colors.brackets |
string | #C586C0 |
Couleur des accolades {{ et }} |
mustacheInline.colors.keywords |
string | #C586C0 |
Couleur des mots-clés de contrôle #, ^, / |
mustacheInline.colors.variables |
string | #9CDCFE |
Couleur des variables et noms |
mustacheInline.colors.embedded |
string | #4EC9B0 |
Couleur de la zone Mustache complète |
mustacheInline.fontStyle.brackets |
string | bold |
Style de police des accolades |
mustacheInline.fontStyle.keywords |
string | bold |
Style de police des mots-clés |
- Ouvrez les paramètres :
Ctrl+,(Windows/Linux) ouCmd+,(Mac) - Recherchez "Mustache Inline"
- Modifiez les couleurs selon vos préférences
{
"mustacheInline.colors.brackets": "#FF6B6B",
"mustacheInline.colors.keywords": "#4ECDC4",
"mustacheInline.colors.variables": "#FFE66D",
"mustacheInline.colors.embedded": "#95E1D3",
"mustacheInline.fontStyle.brackets": "bold",
"mustacheInline.fontStyle.keywords": "bold italic"
}{
"mustacheInline.colors.brackets": "#C586C0",
"mustacheInline.colors.keywords": "#C586C0",
"mustacheInline.colors.variables": "#9CDCFE",
"mustacheInline.colors.embedded": "#4EC9B0"
}{
"mustacheInline.colors.brackets": "#89DDFF",
"mustacheInline.colors.keywords": "#C792EA",
"mustacheInline.colors.variables": "#82AAFF",
"mustacheInline.colors.embedded": "#8BD5CA"
}{
"mustacheInline.colors.brackets": "#F78C6C",
"mustacheInline.colors.keywords": "#FF5370",
"mustacheInline.colors.variables": "#FFCB6B",
"mustacheInline.colors.embedded": "#C3E88D"
}| Commande | Description |
|---|---|
Mustache Inline: Apply Colors |
Réapplique manuellement les couleurs configurées |
Pour exécuter une commande : Ctrl+Shift+P (Windows/Linux) ou Cmd+Shift+P (Mac)
const template = `
<h1>{{title}}</h1>
{{#users}}
<div class="user">
<span>{{name}}</span>
<span>{{email}}</span>
</div>
{{/users}}
{{^users}}
<p>Aucun utilisateur</p>
{{/users}}
`;const greeting = "Bonjour {{user.name}}, vous avez {{notifications}} notification(s).";
const html = `
<div>
{{! Ceci est un commentaire }}
{{>header}}
<main>{{content}}</main>
{{>footer}}
</div>
`;- Copiez le dossier de l'extension dans
.vscode/extensions/mustache-inline/ - Rechargez VS Code :
Ctrl+Shift+P→ "Developer: Reload Window"
L'extension est automatiquement chargée si elle se trouve dans le dossier .vscode/extensions/ de votre workspace.
- Vérifiez que l'extension est activée : ouvrez la console de débogage (
Help→Toggle Developer Tools) - Recherchez le message : "Mustache Inline Highlighter est activé"
- Exécutez manuellement :
Ctrl+Shift+P→ "Mustache Inline: Apply Colors" - Rechargez la fenêtre :
Ctrl+Shift+P→ "Developer: Reload Window"
- Attendez quelques secondes (l'application est automatique)
- Si nécessaire, exécutez "Mustache Inline: Apply Colors"
- Vérifiez que les valeurs hexadécimales sont valides (ex:
#FF0000)
Si vous avez d'autres extensions de coloration Mustache, désactivez-les pour éviter les conflits :
Ctrl+Shift+X→ Extensions- Recherchez les extensions Mustache
- Désactivez les extensions en conflit
Cette extension est développée pour un usage interne. Pour toute suggestion ou bug :
- VĂ©rifiez que le problème n'existe pas dĂ©jĂ
- Fournissez un exemple de code reproduisant le problème
- Incluez votre configuration (
mustacheInline.*settings)
Usage interne - Tous droits réservés
- 🎉 Version initiale
- ✨ Coloration syntaxique pour Mustache dans les strings TS/JS
- ⚙️ Configuration complète des couleurs et styles
- 🎨 Support des thèmes personnalisés
- 🔧 Commande de réapplication manuelle
Profitez du code avec de beaux templates Mustache ! 🎨✨

