Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Nextjs TextMate HighlighterNew to Visual Studio Code? Get it now.
Nextjs TextMate Highlighter

Nextjs TextMate Highlighter

Alfonsus Ardani

|
2 installs
| (0) | Free
VSCode extension to highlight Next.js use server directive
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Use Server Highlighter

A minimal TextMate grammar injector that highlights the "use server" directive in JavaScript, TypeScript, JSX, and TSX files.

✨ Features

  • Highlights "use server" (including quotes)
  • Works in .js, .ts, .jsx, and .tsx
  • Simple, lightweight — no code execution, no dependencies

🎨 Customization

If you want a different color, add this to your settings:

"editor.tokenColorCustomizations": {
  "textMateRules": [
    {
      "scope": "keyword.control.use-server.js",
      "settings": { "foreground": "#ff5555" }
    }
  ]
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft