1
0
mirror of https://github.com/chylex/IntelliJ-Rainbow-Brackets.git synced 2025-04-11 12:15:50 +02:00
IntelliJ Platform plugin that colors bracket pairs and indentation.
Go to file
2018-01-11 18:24:20 +08:00
gradle/wrapper Remove unused task 2017-10-04 12:23:49 +08:00
screenshots Add support for HTML/XML & highlight "<"、">"、"</" & release version 2.3 2017-10-14 10:39:31 +08:00
src Implement rainbow annotator for javascript language, Fix 2018-01-11 18:24:20 +08:00
.gitignore Initial commit 2017-10-04 12:09:51 +08:00
.travis.yml Release 3.0-R1 2017-11-30 12:13:38 +08:00
build.gradle Fix dependencies & Fix color pattern & register annotator in xml not in RainbowComponent & Fix typo 2018-01-10 12:54:15 +08:00
gradle.properties Release 3.0-RC5 2018-01-10 22:36:53 +08:00
gradlew Initial commit 2017-10-04 12:09:51 +08:00
gradlew.bat Initial commit 2017-10-04 12:09:51 +08:00
README.md Add a quick guide to help people implement rainbow brackets for new or specific languages 2018-01-10 21:23:20 +08:00

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 ...

This plugin is also compatible with material-theme-jetbrains-eap

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
  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