Skip to content

Commit

Permalink
v0.2.2 Custom color schemes for Default and Darcula
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Jun 24, 2014
1 parent 9c16465 commit be1b682
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 3 deletions.
6 changes: 4 additions & 2 deletions META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<idea-plugin version="2">
<id>mobi.hsz.idea.gitignore</id>
<name>.gitignore support</name>
<version>0.2.1</version>
<version>0.2.2</version>
<vendor email="[email protected]" url="http://www.hsz.mobi">hsz</vendor>

<description><![CDATA[
Expand All @@ -16,6 +16,7 @@

<change-notes><![CDATA[
<ul>
<li><strong>0.2.2</strong> Custom color schemes for Default and Darcula</li>
<li><strong>0.2.1</strong> Syntax highlight fix, Color Settings Page sample</li>
<li><strong>0.2</strong> Syntax highlight</li>
<li><strong>0.1</strong> Initial version</li>
Expand All @@ -27,11 +28,12 @@
<depends>com.intellij.modules.lang</depends>

<extensions defaultExtensionNs="com.intellij">
<internalFileTemplate name="Gitignore File" />
<colorSettingsPage implementation="mobi.hsz.idea.gitignore.highlighter.GitignoreColorSettingsPage" />
<fileTypeFactory implementation="mobi.hsz.idea.gitignore.GitignoreFileTypeFactory" />
<lang.parserDefinition language="Gitignore" implementationClass="mobi.hsz.idea.gitignore.GitignoreParserDefinition" />
<lang.syntaxHighlighterFactory key="Gitignore" implementationClass="mobi.hsz.idea.gitignore.highlighter.GitignoreHighlighterFactory" />
<additionalTextAttributes scheme="Default" file="colorSchemes/GitignoreDefault.xml" />
<additionalTextAttributes scheme="Darcula" file="colorSchemes/GitignoreDarcula.xml" />
</extensions>

<application-components>
Expand Down
37 changes: 37 additions & 0 deletions resources/colorSchemes/GitignoreDarcula.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version='1.0'?>
<list>
<option name="GITIGNORE.COMMENT">
<value>
<option name="FOREGROUND" value="808080" />
</value>
</option>
<option name="GITIGNORE.SECTION">
<value>
<option name="FOREGROUND" value="8C8C8C" />
<option name="BACKGROUND" value="3A3A3A" />
</value>
</option>
<option name="GITIGNORE.HEADER">
<value>
<option name="FOREGROUND" value="8C8C8C" />
<option name="BACKGROUND" value="3A3A3A" />
<option name="FONT_TYPE" value="1" />
</value>
</option>
<option name="GITIGNORE.NEGATION">
<value>
<option name="FOREGROUND" value="A9B7C6" />
<option name="BACKGROUND" value="532B2E" />
</value>
</option>
<option name="GITIGNORE.ENTRY_FILE">
<value>
<option name="FOREGROUND" value="629755" />
</value>
</option>
<option name="GITIGNORE.ENTRY_DIRECTORY">
<value>
<option name="FOREGROUND" value="6897BB" />
</value>
</option>
</list>
37 changes: 37 additions & 0 deletions resources/colorSchemes/GitignoreDefault.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version='1.0'?>
<list>
<option name="GITIGNORE.COMMENT">
<value>
<option name="FOREGROUND" value="808080" />
</value>
</option>
<option name="GITIGNORE.SECTION">
<value>
<option name="FOREGROUND" value="808080" />
<option name="BACKGROUND" value="ECFAEB" />
</value>
</option>
<option name="GITIGNORE.HEADER">
<value>
<option name="FOREGROUND" value="808080" />
<option name="BACKGROUND" value="ECFAEB" />
<option name="FONT_TYPE" value="1" />
</value>
</option>
<option name="GITIGNORE.NEGATION">
<value>
<option name="FOREGROUND" value="FFFFFF" />
<option name="BACKGROUND" value="FF0000" />
</value>
</option>
<option name="GITIGNORE.ENTRY_FILE">
<value>
<option name="FOREGROUND" value="5C9F30" />
</value>
</option>
<option name="GITIGNORE.ENTRY_DIRECTORY">
<value>
<option name="FOREGROUND" value="1A16BA" />
</value>
</option>
</list>
2 changes: 1 addition & 1 deletion resources/sample.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## First section
*.jar
*.war # Inline comment
*.war
*.ear
out/

Expand Down

0 comments on commit be1b682

Please sign in to comment.