mirror of
https://github.com/chylex/IntelliJ-Rainbow-Brackets.git
synced 2025-05-12 15:34:03 +02:00
6.3
This commit is contained in:
parent
054208660a
commit
6ae1d082c0
@ -168,6 +168,8 @@ you can use [this tool](https://www.freeformatter.com/xml-escape.html#ad-output)
|
||||
<kbd>Settings/Preferences</kbd> > <kbd>Other Settings</kbd> > <kbd>Rainbow Brackets</kbd> > `Number of colors`: 5 or more
|
||||
|
||||
NOTE: For default and darcula color scheme(`Editor -> Color Scheme -> Rainbow Brackets -> Scheme`) the color number is 10, for the other scheme the number is 5, if your number is bigger than the number, you can config them in the config file.
|
||||
If the color is not exist, we will use color generator to generator it for you.
|
||||
|
||||
Please follow [the official guide](https://www.jetbrains.com/help/idea/configuring-colors-and-fonts.html#share-color-scheme):
|
||||
* `Export a color scheme as XML`
|
||||
* Edit the xml file, put `ROUND_BRACKETS_RAINBOW_COLOR5` to `ROUND_BRACKETS_RAINBOW_COLOR100` to match your number just like [the default color scheme](./src/main/resources/colorSchemes/rainbow-color-default-darcula.xml).
|
||||
|
@ -6,5 +6,5 @@ javaVersion=11
|
||||
kotlinVersion=1.3.71
|
||||
kotlinLanguageVersion=1.3
|
||||
kotlinTargetVersion=1.3
|
||||
version=6.2
|
||||
version=6.3
|
||||
publishChannels=Stable
|
@ -29,10 +29,10 @@ object RainbowHighlighter {
|
||||
const val NAME_SQUIGGLY_BRACKETS = "Squiggly Brackets"
|
||||
const val NAME_ANGLE_BRACKETS = "Angle Brackets"
|
||||
|
||||
const val KEY_ROUND_BRACKETS = "ROUND_BRACKETS_RAINBOW_COLOR"
|
||||
const val KEY_SQUARE_BRACKETS = "SQUARE_BRACKETS_RAINBOW_COLOR"
|
||||
const val KEY_SQUIGGLY_BRACKETS = "SQUIGGLY_BRACKETS_RAINBOW_COLOR"
|
||||
const val KEY_ANGLE_BRACKETS = "ANGLE_BRACKETS_RAINBOW_COLOR"
|
||||
private const val KEY_ROUND_BRACKETS = "ROUND_BRACKETS_RAINBOW_COLOR"
|
||||
private const val KEY_SQUARE_BRACKETS = "SQUARE_BRACKETS_RAINBOW_COLOR"
|
||||
private const val KEY_SQUIGGLY_BRACKETS = "SQUIGGLY_BRACKETS_RAINBOW_COLOR"
|
||||
private const val KEY_ANGLE_BRACKETS = "ANGLE_BRACKETS_RAINBOW_COLOR"
|
||||
|
||||
private val roundBrackets: CharArray = charArrayOf('(', ')')
|
||||
private val squareBrackets: CharArray = charArrayOf('[', ']')
|
||||
@ -169,12 +169,14 @@ object RainbowHighlighter {
|
||||
}
|
||||
|
||||
|
||||
private val KEY_HTML_CODE = TextAttributesKey.createTextAttributesKey("HTML_CODE")
|
||||
private val KEY_KOTLIN_LABEL = TextAttributesKey.createTextAttributesKey("KOTLIN_LABEL")
|
||||
private val KEY_MATCHED_BRACE_ATTRIBUTES =
|
||||
TextAttributesKey.createTextAttributesKey("MATCHED_BRACE_ATTRIBUTES")
|
||||
private val KOTLIN_FUNCTION_LITERAL_BRACES_AND_ARROW =
|
||||
TextAttributesKey.createTextAttributesKey("KOTLIN_FUNCTION_LITERAL_BRACES_AND_ARROW")
|
||||
private val KEY_HTML_CODE: TextAttributesKey by lazy { TextAttributesKey.createTextAttributesKey("HTML_CODE") }
|
||||
private val KEY_KOTLIN_LABEL: TextAttributesKey by lazy { TextAttributesKey.createTextAttributesKey("KOTLIN_LABEL") }
|
||||
private val KEY_MATCHED_BRACE_ATTRIBUTES: TextAttributesKey by lazy {
|
||||
TextAttributesKey.createTextAttributesKey("MATCHED_BRACE_ATTRIBUTES")
|
||||
}
|
||||
private val KOTLIN_FUNCTION_LITERAL_BRACES_AND_ARROW: TextAttributesKey by lazy {
|
||||
TextAttributesKey.createTextAttributesKey("KOTLIN_FUNCTION_LITERAL_BRACES_AND_ARROW")
|
||||
}
|
||||
|
||||
|
||||
fun fixHighlighting(scheme: EditorColorsScheme = EditorColorsManager.getInstance().globalScheme) {
|
||||
|
@ -37,7 +37,9 @@ class RainbowUpdateNotifyActivity : StartupActivity {
|
||||
🆕See <b><a href="${changelog()}">changelog</a></b> for more details about this update.<br>
|
||||
👉Want to customize your own color scheme of Rainbow Brackets? Edit it under
|
||||
<b>Settings > Editor > Color Scheme > Rainbow Brackets</b><br>
|
||||
👉Other additional feature under
|
||||
👉Tired of the bundled colors? Try out the new color generator!
|
||||
<b>Settings > Other Settings > Rainbow Brackets > Use color generator</b><br>
|
||||
👉Other additional features under
|
||||
<b>Settings > Other Settings > Rainbow Brackets</b><br/>
|
||||
Enjoy your colorful code🌈.
|
||||
"""
|
||||
|
@ -57,6 +57,16 @@
|
||||
]]></description>
|
||||
|
||||
<change-notes><![CDATA[
|
||||
<p>6.3</p>
|
||||
<ul>
|
||||
<li>Feature <a href="https://github.com/izhangzhihao/intellij-rainbow-brackets/issues/417">#417: Disable Rainbow Indents in Zen mode</a></li>
|
||||
<li>Feature <a href="https://github.com/izhangzhihao/intellij-rainbow-brackets/issues/227">#227: Coloring for angle bracket for C++ code</a></li>
|
||||
<li>Fix some exceptions and refactoring!</li>
|
||||
<li>Feature <a href="https://github.com/izhangzhihao/intellij-rainbow-brackets/issues/214">#214: New color generator to generate your color schema</a></li>
|
||||
</ul>
|
||||
<br/>
|
||||
|
||||
|
||||
<p>6.2</p>
|
||||
<ul>
|
||||
<li>Fix <a href="https://github.com/izhangzhihao/intellij-rainbow-brackets/issues/410">#410: ArrayIndexOutOfBoundsException when number of colors to less than 5</a></li>
|
||||
@ -579,7 +589,7 @@
|
||||
<highlightVisitor implementation="com.github.izhangzhihao.rainbow.brackets.visitor.DefaultRainbowVisitor"/>
|
||||
<highlightVisitor implementation="com.github.izhangzhihao.rainbow.brackets.visitor.XmlRainbowVisitor"/>
|
||||
|
||||
<applicationConfigurable instance="com.github.izhangzhihao.rainbow.brackets.settings.RainbowConfigurable" dynamic="true"/>
|
||||
<applicationConfigurable instance="com.github.izhangzhihao.rainbow.brackets.settings.RainbowConfigurable"/>
|
||||
<applicationService
|
||||
serviceImplementation="com.github.izhangzhihao.rainbow.brackets.settings.RainbowSettings"/>
|
||||
<colorAndFontPanelFactory
|
||||
|
Loading…
Reference in New Issue
Block a user