Monokai color theme for em::blocks?

Guest #3557471
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/).
Guest
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.
Guest
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

Reply

A question of your own? This thread is over 12 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.