EmbDev.net

Forum: ARM programming with GCC/GNU tools Monokai color theme for em::blocks?


von Holla (Guest)


Rate this post
useful
not useful
Is there a way for Em::Blocks IDE (http://www.emblocks.org/web/) to load 
editor / syntax highlighting color settings (themes) from file? The GUI 
does not seem to have such option, only manual settings seem available.
I would like to have a dark theme like Monokai 
(http://www.monokai.nl/blog/2006/07/15/textmate-color-theme/).

: Moved by Admin
von try_it (Guest)


Rate this post
useful
not useful
Try to detect an XML(as you can download by Monokai), which looks like 
syntax highlighting and try to replace it with the Monokai XML.

von Holla (Guest)


Rate this post
useful
not useful
Custom colors are saved in

C:\Users\<username>\AppData\Roaming\EmBlocks\1.40\default.conf

like this
1
    <colour_sets>
2
      <default />
3
      <monokai>
4
        <NAME>
5
          <str>
6
            <![CDATA[Monokai]]>
7
          </str>
8
        </NAME>
9
        <cc>
10
          <style0>
11
            <FORE>
12
              <colour r="255" g="255" b="255" />
13
            </FORE>
14
            <BACK>
15
              <colour r="0" g="0" b="0" />
16
            </BACK>
17
            <NAME>
18
              <str>
19
                <![CDATA[Default]]>
20
              </str>
21
            </NAME>
22
          </style0>
23
          <style7>
24
            <BACK>
25
              <colour r="0" g="0" b="0" />
26
            </BACK>
27
            <NAME>
28
              <str>
29
                <![CDATA[Inactive preprocessor code]]>
30
              </str>
31
            </NAME>
32
          </style7>
33
          <NAME>
34
            <str>
35
              <![CDATA[C/C++]]>
36
            </str>
37
          </NAME>
38
          <editor>
39
            <keywords />
40
          </editor>
41
        </cc>
42
      </monokai>
43
      <ACTIVE_COLOUR_SET>
44
        <str>
45
          <![CDATA[Monokai]]>
46
        </str>
47
      </ACTIVE_COLOUR_SET>
48
      <ACTIVE_LANG>
49
        <str>
50
          <![CDATA[C/C++]]>
51
        </str>
52
      </ACTIVE_LANG>
53
    </colour_sets>

It will require some work to convert 
http://www.monokai.nl/blog/wp-content/asdev/Monokai.tmTheme

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.