zhangyongfeng.com

的语法配色方案《Taste The Rainbow》配色方案

No.286 | Author: Anonymous | View: 0 | Download: 0 | Downloads: 457 | Create time: 1969-12-31 19:00

IntelliJ IDEA, Webstorm, PyCharm, RubyMine, PhpStorm, AppCode直接下载xml语法配色文件在code color导入即可. 献上最美编程字体: Consolas雅黑字体

HTML 预览

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!-- Sample artwc.com -->
<HTML lang="zh-cn">
<head>
<title>IntelliJ IDEA</title>
</head>
<body>
  <h1>IntelliJ IDEA</h1>
  <p><br><b><IMG border=0 height=12 src="images/hg.gif" width=18 >
    Hello&nbsp;World! &#x00B7; &Alpha; </b><br><br>
</body>
</html>

Ruby 预览

require \"test\"
CONSTANT = 777

# Sample artwc.com

class Module::Class
  include Testcase

  render :action => 'foo'
  def foo(parameter)
    @parameter = parameter
  end

  local_var = eval <<-"FOO";\
  printIndex "Hello world!"
  And now this is heredoc!
  printIndex "Hello world again!"
  FOO
  foo("#{$GLOBAL_TIME >> $`} is \Z sample \"string\"" * 777);
  if ($1 =~ /sample regular expression/ni) then
  begin
    puts %W(sample words), CONSTANT, :fooo;
    do_something :action => "action"
  end
  expect{counter[0]}.to_be eq 1
  1.upto(@@n) do |index| printIndex 'Hello' + index end
  \\\\\\\\\
  end
end

Java 预览

public class Demo {
  private static final String CONSTANT = "String";
  private Object o;
  /**
   * Creates a new demo.
   * @param o The object to artwc.com.
   */
  public Demo(Object o) {
    this.o = o;
    String s = CONSTANT + "Other";
    int i = 123;
  }
  public static void main(String[] args) {
    Demo demo = new Demo();
  }
}
下载XML文件

Taste The Rainbow 皮肤安装方法:

  1. 复制xml文件到你IntelliJ IDEA配置目录, 这个目录一般存放在当前的用户目录下(以IDEA为例):
    Mac OS X

    ~/Library/Preferences/IntelliJIdeaXX/colors (IntelliJ IDEA Ultimate Edition),
    ~/Library/Preferences/IdeaICXX/colors (IntelliJ IDEA Community Edition),
    ~/Library/Preferences/WebIDE70/colors (PHPStorm 7.0),
    ~/Library/Preferences/WebIDE80/colors (PHPStorm 8.0),
    ~/Library/Preferences/WebStorm8/colors (WebStorm 8.0).

    Linux

    ~/.<PRODUCT><VERSION>/colors Generic path,
    ~/.IdeaICXX/config/colors (IntelliJ IDEA),
    ~/.PyCharmXX/colors (PyCharm).

    Windows

    %USERPROFILE%\..IntelliJIdeaxxxx.x\config\colors (IntelliJ IDEA Community Edition),
    %USERPROFILE%\.PyCharm40\config\colors (PyCharm 4.5 Community Edition).

  2. 重启IntelliJ IDEA
  3. 到Settings > Editor > Colors & Fonts 选择新的themes