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

CALPUFF INP Syntax Highlighter

GravitySHI

|
29 installs
| (1) | Free
Provides syntax highlighting for CALPUFF .inp files using a custom TextMate grammar
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CALPUFF INP Syntax Highlighter

This extension provides syntax highlighting for CALPUFF .inp files using a custom TextMate grammar.

Features

  • Highlights lines of the form ! VARIABLE = VALUE ! in different colors (variable vs. value).
  • Treats lines starting with ! as comments.

Installation

  1. Install Node.js, then run npm install -g vsce.
  2. In this folder, run vsce package.
  3. In VS Code, go to Extensions → “Install from VSIX...” → select the generated .vsix.
  4. Open any .inp file to see the highlighting.

Configuration

To customize the highlighting colors, add this to your user settings.json:

"editor.tokenColorCustomizations": {
  "textMateRules": [
    {
      "scope": "variable.name.calpuff",
      "settings": {
        "foreground": "#ffa500",
        "fontStyle": "bold"
      }
    },
    {
      "scope": "variable.value.calpuff",
      "settings": {
        "foreground": "#66ccff"
      }
    },
    {
      "scope": "comment.line.exclamation.calpuff",
      "settings": {
        "foreground": "#aaaaaa",
        "fontStyle": "italic"
      }
    }
  ]
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft