在程序员记事本中,我无法在Erlang的黑暗方案中看到评论

时间:2015-12-05 13:15:26

标签: xml erlang programmers-notepad

我在程序员记事本(PN)中为Erlang制作了一个深色配色方案。问题是以" %%"开头的评论没有出现(可能是因为它们是黑色的黑色)。以"%"开头的评论显示指定的颜色。这是PN的方案文件:

<?xml version="1.0" encoding="UTF-8"?>
<Scheme>
    <keyword-classes>
        <keyword-class name="erlang">after begin case catch cond end fun if let of query receive when
define record export import include include_lib ifdef ifndef else endif undef
apply attribute call do in letrec module primop try
        </keyword-class>
    </keyword-classes>

    <!-- base scheme for C++ style languages -->
    <language name="erlang" title="Erlang">
        <lexer name="erlang" />
        <comments line="%" />
        <use-keywords>
            <keyword key="0" name="Keywords" class="erlang"/>
        </use-keywords>
        <use-styles>
            <style name="Default" key="32" back="000000" />
            <style name="Whitespace" key="0" back="000000" class="whitespace" />
            <style name="Comment" key="1" fore="C0C0FF" class="commentline" />
            <style name="Variable" key="2" fore="FFFFC0" class="variable"/>
            <style name="Number" key="3" fore="D0D0D0" class="number"/>
            <style name="Keyword" key="4" fore="C0FFC0" class="keyword"/>
            <style name="String" key="5" fore="D0D0D0" class="string"/>
            <style name="Operator" key="6" fore="C0FFFF" class="operator"/>
            <style name="Atom" key="7" fore="FFFFFF"/>
            <style name="Function Name" fore="FFC0FF" key="8" class="tag"/>
            <style name="Character" key="9" fore="FFFFFF" class="string"/>
            <style name="Macro" key="10" fore="FFFFFF" fore="FF0000"/>
            <style name="Record" key="11" fore="FFFFFF" fore="FF8080"/>
            <style name="Separator" key="12" fore="FFFFFF" class="error"/>
            <style name="Node name" key="13" fore="FFFFFF" fore="FF00FF"/>
            <style name="Parse error" key="31" back="FFFFFF" fore="FF0000" class="error"/>
        </use-styles>
    </language>
</Scheme>

示例Erlang评论:

% I can be seen
%% I'm invisible

使用此方案时,光标在PN中也不可见。

1 个答案:

答案 0 :(得分:0)

要使所有其他文本可见,我会为默认文本设置前景色:

<style name="Default" key="32" back="000000" fore="FFFFFF" />

为了让光标显示,我加载了&#34; Dark&#34;预设通过&#34;工具 - &gt;选项 - &gt;字体和颜色 - &gt;样式&#34;