[go: nahoru, domu]

Skip to content

rstudner/intellij-rainbow-brackets

 
 

Repository files navigation

Rainbow Brackets

Build Status Codacy Badge Rainbow Brackets Release Plugin downloads Plugin version contributions welcome

Rainbow Brackets / Rainbow Parentheses for IntelliJ IDEA-based IDEs

Compatible with

IntelliJ IDEA, PhpStorm, WebStorm, PyCharm, RubyMine, AppCode, CLion, Gogland, DataGrip, Rider, MPS, Android Studio

Supported languages

Java, Scala, Clojure, Kotlin, Python, Haskell, Agda, Rust, JavaScript, TypeScript, Erlang, Go, Groovy, Ruby, Elixir, ObjectiveC, PHP, C#, HTML, XML, SQL, Apex language ...

Screenshots

  • with material-theme-jetbrains-eap

  • with scala

  • with kotlin

  • with HTML/XML

  • and more...

Install

https://plugins.jetbrains.com/plugin/10080-rainbow-brackets

Implement for some language you would like

  1. Check this commit for implementation for scala or check out this commit for implementation for javascript.
  2. Found the language ID such as Scala
  3. Implement RainbowScala which is a class implement Annotator, you should know the TokenTypes of your language, such as ScalaTokenTypes. And find out the myDebugName of your IElementType, in scala, we have:
IElementType bracket myDebugName
tLSQBRACKET [ [
tRSQBRACKET ] ]
tLBRACE { {
tRBRACE } }
tLPARENTHESIS ( (
tRPARENTHESIS ) )
tLESS < <
tGREATER > >

So you could use myDebugName as parameter pass to annotateUtil

  1. Add your language id to specLangList so we can ignore common annotator.
  2. Remove old annotator implement in plugin.xml and add your new !
  3. gradle runIde check your awesome work !
  4. Sent PR.

Contribute

  • gradle runIde
  • gradle buildPlugin

Acknowledgements

Intellij-rainbow-brackets is heavily inspired by intellij-rainbow and Rainbow Brackets for Visual Studio Code

About

Rainbow Brackets / Rainbow Parentheses for IntelliJ IDEA-based IDEs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 85.2%
  • Java 12.7%
  • JavaScript 2.1%