Constructor

IdeHtmlGeneratornew_for_buffer

Declaration

IdeHtmlGenerator*
ide_html_generator_new_for_buffer (
  GtkTextBuffer* buffer
)

Description

Create a 1:1 HTML generator for a buffer.

Creates a IdeHtmlGenerator that passes the content directly from what is found in a GtkTextBuffer.

Parameters

buffer

Type: GtkTextBuffer

A GtkTextBuffer.

The data is owned by the caller of the function.

Return value

Type: IdeHtmlGenerator

An IdeHtmlGenerator.

The caller of the function takes ownership of the data, and is responsible for freeing it.