Skip to content

thephotogenicbug/prismbrackets

Repository files navigation

Prism Brackets – Rainbow Bracket Highlighter for VS Code

Fast, zero-lag rainbow bracket highlighting with scope visualization, vertical guides, and smart parsing.

PrismBrackets Logo

🌈 Prism Brackets

Advanced rainbow bracket highlighting with glow, multi-language support, and smart parsing.

Improve readability β€’ Reduce errors β€’ Code faster

✨ Clean code starts with clear brackets


πŸš€ Overview

Prism Brackets enhances your coding experience with:

  • 🌈 Depth-based rainbow bracket highlighting
  • 🎨 Advanced color system (less repetition, better spacing)
  • πŸŒ— Theme-aware colors (auto adapts to dark/light themes)
  • ✨ Glow effect for enhanced visibility
  • 🎯 Matching bracket highlight
  • ⚑ Real-time updates while typing
  • πŸ”˜ Enable/Disable toggle (status bar)
  • 🧠 Smart parsing (ignores strings & comments)
  • 🎯 Focus Mode (dim non-active code & highlight current scope)

Designed for clarity, performance, and developer productivity.


🌍 Supported Languages

  • JavaScript / TypeScript
  • Python
  • HTML / JSON
  • SQL
  • C / C++
  • Java
  • PHP / Laravel Blade (partial)

πŸ–ΌοΈ Preview

Main Showcase

Nested Depth Highlight

Mixed Brackets


Focus Mode


Example

function example() {
  return 1 + 2 * (3 + 4 * (5 + 6));
}

Installation

ext install Naveendev.prismbrackets

Contributing

git clone https://github.com/thephotogenicbug/prismbrackets.git
cd prismbrackets
npm install
npm run watch

Project Structure

src/
β”œβ”€β”€ commands/
β”‚   └── toggle.ts          # Enable/disable + glow toggle commands

β”œβ”€β”€ decorations/
β”‚   └── decorations.ts     # VS Code decoration creation & management

β”œβ”€β”€ features/
β”‚   β”œβ”€β”€ colorize.ts        # Core bracket coloring logic
β”‚   └── match.ts           # Matching bracket highlight logic

β”œβ”€β”€ utils/
β”‚   β”œβ”€β”€ colors.ts          # Color generation (theme-aware)
β”‚   β”œβ”€β”€ debounce.ts        # Performance optimization
β”‚   └── languageConfig.ts  # Language-specific parsing rules

β”œβ”€β”€ extension.ts           # Entry point (activation + listeners)
β”œβ”€β”€ state.ts               # Global state (enabled, glow)

Made with ❀️ by Naveen

About

🌈 Prism Brackets – Rainbow bracket highlighting with glow, theme-aware colors, multi-language support, and smart parsing for improved code readability in VS Code. Includes advanced scope highlighting with border glow and vertical guide lines.

Topics

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors