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

Export as HTML, RTF, ...

<< < (5/10) > >>

Ceniza:

--- Quote from: rickg22 ---There are a lot of styles in scintilla, depending on the language.
--- End quote ---

I'm talking specifically about the C/C++ syntax highlighting.

I found all the styles (I use the word style to refer to the specific color and text formatting of an item, being an item a keyword, a string, a number, ...) are stored in a struct named ObjectColor in Code::Blocks.

That struct holds its name, value, foreground, background, bold, italic, underline and if it's a style.

The variable value holds the style number used by wxScintilla. In other words, it's the key that maps a specific formatting with its stored value in wxScintilla.

The thing is: wxScintilla is using a style with value 11 for identifiers, which isn't in any of those ObjectColor for the C/C++ color theme.

By not being there it should become the default style (and the default style happen to exist in ObjectColor).

The question is: leaving style 11 out of ObjectColor was intentional just to make it map to default?

Ceniza:
I would like to inform you I've already started playing with the ODT format and I've got all I need to start making the plugin, except time.

I really wanna get this third format working so I'll try to get some time for it soon.

What do you think of PDF as a fourth format? I'd need to start playing with it too, but I think it would be nice.

rickg22:
eew! PDF!  :| Well, I guess it's the users' choice. But don't be too quick on implementing features if nobody has asked for them.

Ceniza:
Well, I considered PDF 'cause it's a popular one, almost like HTML and RTF are (please, don't go off-topic about this sentence).

ODT in the other hand was a feature request (or format request :P) which is good, I think.

Imagine: "Code::Blocks... the first IDE to support ODT file exporting." :)

takeshimiya:
Yeah, and try to support what SciTE supports, so one would have less reasons for using SciTe and more for using C::B  :)

Namely: HTML, RTF, PDF, LaTeX, XML export support.

Off-topic: Regarding SciTE, I would like to see C::B scripting in lua embedded, just like SciTE does (using it for macros, extended functionality, etc).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version