## CamelMimeFilterToHTML

CamelMimeFilterToHTML

## Synopsis

                        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 color);
    gchar *             camel_text_to_html                  (const gchar *in,
                                                             guint32 flags,
                                                             guint32 color);

## Object Hierarchy

      GObject
       +----CamelObject
             +----CamelMimeFilter
                   +----CamelMimeFilterToHTML

## Description

## Details

### CamelMimeFilterToHTML

    typedef struct _CamelMimeFilterToHTML CamelMimeFilterToHTML;

### CAMEL_MIME_FILTER_TOHTML_PRE

    #define CAMEL_MIME_FILTER_TOHTML_PRE               (1 << 0)

### CAMEL_MIME_FILTER_TOHTML_CONVERT_NL

    #define CAMEL_MIME_FILTER_TOHTML_CONVERT_NL        (1 << 1)

### CAMEL_MIME_FILTER_TOHTML_CONVERT_SPACES

    #define CAMEL_MIME_FILTER_TOHTML_CONVERT_SPACES    (1 << 2)

### CAMEL_MIME_FILTER_TOHTML_CONVERT_URLS

    #define CAMEL_MIME_FILTER_TOHTML_CONVERT_URLS      (1 << 3)

### CAMEL_MIME_FILTER_TOHTML_MARK_CITATION

    #define CAMEL_MIME_FILTER_TOHTML_MARK_CITATION     (1 << 4)

### CAMEL_MIME_FILTER_TOHTML_CONVERT_ADDRESSES

    #define CAMEL_MIME_FILTER_TOHTML_CONVERT_ADDRESSES (1 << 5)

### CAMEL_MIME_FILTER_TOHTML_ESCAPE_8BIT

    #define CAMEL_MIME_FILTER_TOHTML_ESCAPE_8BIT       (1 << 6)

### CAMEL_MIME_FILTER_TOHTML_CITE

    #define CAMEL_MIME_FILTER_TOHTML_CITE              (1 << 7)

### CAMEL_MIME_FILTER_TOHTML_PRESERVE_8BIT

    #define CAMEL_MIME_FILTER_TOHTML_PRESERVE_8BIT     (1 << 8)

### CAMEL_MIME_FILTER_TOHTML_FORMAT_FLOWED

    #define CAMEL_MIME_FILTER_TOHTML_FORMAT_FLOWED     (1 << 9)

### camel_mime_filter_tohtml_new ()

    CamelMimeFilter *   camel_mime_filter_tohtml_new        (guint32 flags,
                                                             guint32 color);

Create a new CamelMimeFilterToHTML object to convert plain text into HTML.

`flags` : | bitwise flags defining the behaviour
`color` : | color to use when highlighting quoted text
Returns : | a new CamelMimeFilterToHTML object

### camel_text_to_html ()

    gchar *             camel_text_to_html                  (const gchar *in,
                                                             guint32 flags,
                                                             guint32 color);

Convert `in` from plain text into HTML.

`in` : | input text
`flags` : | bitwise flags defining the html conversion behaviour
`color` : | color to use when syntax highlighting
Returns : | a newly allocated string containing the HTMLified version of `in`