| Camel Reference Manual | ||||
|---|---|---|---|---|
CamelMimeFilterToHTML;
#define CAMEL_MIME_FILTER_TOHTML_PRE
#define CAMEL_MIME_FILTER_TOHTML_CONVERT_NL
#define CAMEL_MIME_FILTER_TOHTML_CONVERT_SPACES
#define CAMEL_MIME_FILTER_TOHTML_CONVERT_URLS
#define CAMEL_MIME_FILTER_TOHTML_MARK_CITATION
#define CAMEL_MIME_FILTER_TOHTML_CONVERT_ADDRESSES
#define CAMEL_MIME_FILTER_TOHTML_ESCAPE_8BIT
#define CAMEL_MIME_FILTER_TOHTML_CITE
#define CAMEL_MIME_FILTER_TOHTML_PRESERVE_8BIT
#define CAMEL_MIME_FILTER_TOHTML_FORMAT_FLOWED
CamelMimeFilter* camel_mime_filter_tohtml_new (guint32 flags,
guint32 colour);
char* camel_text_to_html (const char *in,
guint32 flags,
guint32 colour);
typedef struct {
CamelMimeFilter parent;
struct _CamelUrlScanner *scanner;
guint32 flags;
guint32 colour;
guint32 column : 31;
guint32 pre_open : 1;
} CamelMimeFilterToHTML;
#define CAMEL_MIME_FILTER_TOHTML_CONVERT_ADDRESSES (1 << 5)
CamelMimeFilter* camel_mime_filter_tohtml_new (guint32 flags, guint32 colour);
Create a new CamelMimeFilterToHTML object to convert plain text into HTML.
flags : |
bitwise flags defining the behaviour |
colour : |
colour to use when highlighting quoted text |
| Returns : | a new CamelMimeFilterToHTML object |
char* camel_text_to_html (const char *in,
guint32 flags,
guint32 colour);
Convert in from plain text into HTML.
in : |
input text |
flags : |
bitwise flags defining the html conversion behaviour |
colour : |
colour to use when syntax highlighting |
| Returns : | a newly allocated string containing the HTMLified version
of in
|