說明
本文修改於2018-06-26,使用LiteIDE X33.3,操作系統為Windows。
使用
LiteIDE下載后解壓即可使用。配色方案的所有配置文件都位於liteide/share/liteide/liteeditor/color
中,也即將喜歡的配色方案保存XML文件於此即可。
選擇配色方案,需於LiteIDE點擊“查看(V)”-“選項”打開對話框。再在左側選擇“LiteEditor”,右側選擇“字體與顏色”標簽,“編輯器顏色方案”下拉選擇對應的XML文件即可。
特點
對碼農來說,自定義配色方案,首要目的是護眼,盡量中明度,低反差。我個人不太喜歡主流的黑底白字(或綠/黃/藍字等等),那種感覺就像關了燈被窩里看手機,亮瞎了!普通的白底黑字亮度又太高,因此做了個折中,字還是黑色,但把底色換成灰。這就是該配色方案叫做gv-gray的原因。
上個效果圖:
配置文件
配置文件內容如下。以UTF-8編碼保存至配置gv-gray.xml
中即可使用(詳情參看使用小節)。
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="gv-gray">
<!-- GV gray color scheme -->
<style name="Text" foreground="#000000" background="#C8C8C8"/>
<style name="Extra" foreground="#008B8B" background=""/>
<style name="Selection" background="#3399FF"/>
<style name="CurrentLine" background="#BBBBBB"/>
<style name="IndentLine" foreground="#008B8B"/>
<style name="VisualWhitespace" foreground="#c0c0c0"/>
<style name="Keyword" foreground="#000080" bold="true"/>
<style name="DataType" foreground="#000080" />
<style name="Decimal" foreground="#800080"/>
<style name="BaseN" foreground="#800080"/>
<style name="Float" foreground="#800080"/>
<style name="Char" foreground="#800000"/>
<style name="String" foreground="#008000"/>
<style name="Comment" foreground="#008000"/>
<style name="Alert" foreground="#ff0000"/>
<style name="Error" foreground="#ff0000"/>
<style name="Function" foreground="#000000"/>
<style name="RegionMarker" foreground="#000000"/>
<style name="Symbol" foreground="#000000"/>
<style name="BuiltinFunc" foreground="#000080"/>
<style name="Predeclared" foreground="#000080"/>
<style name="FuncDecl" foreground="#000000"/>
<style name="Placeholder" foreground="#008080"/>
<style name="ToDo" foreground="#006000" background="#e0e0e0" bold="true"/>
</style-scheme>