Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Export as HTML, RTF, ...

<< < (4/10) > >>

Ceniza:

--- Quote from: squizzz ---I'm afraid that everything XML-based is bloated by default. The good thing is that it usually compresses very well (*.odt uses zip compression I think).
--- End quote ---

Well, I'll have to take a deeper look at it. All I know now about its structure is it's compressed in ZIP format, composed of a few XML files and some folders... and OOo ouput is really bloated for this format.

I'll just get the specs file and play a bit, but later.


--- Quote from: squizzz ---Anyway, great thanks for the plugin. :D
--- End quote ---

Heh, no problem :)

Ceniza:
Well, well, well, ...

RTF support has been added to the plugin. It seems to be working fine but I cannot say it's bugless (I'm kinda tired) :P

Dealing with it I found there's no OptionColor object with value 11 in Code::Blocks' C/C++ color theme and it's used everywhere in wxScintilla (at least everywhere no special formatting is applied to the text).

Is that somehow intentional or did I, or a developer, miss something?

Anyway, it's already committed to CVS if anyone feels like trying it.

mandrav:

--- Quote ---Dealing with it I found there's no OptionColor object with value 11 in Code::Blocks' C/C++ color theme and it's used everywhere in wxScintilla (at least everywhere no special formatting is applied to the text).
--- End quote ---

11 is for "identifier". This means, according to my tests, every word that is not a keyword. So, we use the default text attributes for it.

Ceniza:

--- Quote from: mandrav ---11 is for "identifier". This means, according to my tests, every word that is not a keyword. So, we use the default text attributes for it.
--- End quote ---

But... 11 is not in OptionColor, so it, being undefined there, is just used for "default"?

My solution was: if the style is not found select the default.

I still wonder why using a style that isn't there...

rickg22:
There are a lot of styles in scintilla, depending on the language.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version