<!-- ##### SECTION ./tmpl/marker.sgml:Long_Description ##### -->
<para>

</para>


<!-- ##### SECTION ./tmpl/marker.sgml:See_Also ##### -->
<para>

</para>


<!-- ##### SECTION ./tmpl/marker.sgml:Short_Description ##### -->



<!-- ##### SECTION ./tmpl/marker.sgml:Stability_Level ##### -->



<!-- ##### SECTION ./tmpl/marker.sgml:Title ##### -->
GtkSourceMarker


<!-- ##### SECTION ./tmpl/printjob.sgml:Long_Description ##### -->
<para>
The #GtkSourcePrintJob object is used to print the contents of a
#GtkSourceBuffer.  You can set various configuration options to
customize the printed output, and the result is obtained as a
#GnomePrintJob object, which you can then preview with
gnome_print_job_preview_new() or print directly with
gnome_print_job_print().
</para>

<para>
Printing can be done synchronously and asynchronously.  Asynchronous
methods are provided so you can give the user feedback about what's
going on when printing long documents (see the <link
linkend="GtkSourcePrintJob-begin-page">&quot;begin_page&quot;</link>
and <link
linkend="GtkSourcePrintJob-finished">&quot;finished&quot;</link>
signals).
</para>

<para>
The task of a #GtkSourcePrintJob is to produce a #GnomePrintJob.  What
this means is that once you get the resulting #GnomePrintJob, you
might reuse the #GtkSourcePrintJob to produce another output (with
different configuration options for example) or just unreference it
and forget about it.  The lifetime of the produced object is
independent of that of the producer.
</para>

<para>
Before printing you should <emphasis>at least</emphasis> set the
#GtkSourceBuffer you want to print (using
gtk_source_print_job_set_buffer ()).  Besides that, you might
configure word wrapping, font, whether to print hightlighted text as
seen in the #GtkSourceView, line numbers, basic headers and footers.
</para>

<para>
#GtkSourcePrintJob can print basic headers and footers in each page.
You can specify strftime() like strings for text on the left, right
and center of the top and bottom of the page.  You can also make
#GtkSourcePrintJob draw a separator line between the text document and
the header and footer.  And you can specify a different font (from
that used for the text document).
</para>

<para>
Customization beyond that is possible, but you have to do the printing
manually.  To do that, you need to connect to the <link
linkend="GtkSourcePrintJob-begin-page">&quot;begin_page&quot;</link>
signal of the job and allocate some space in the page using
gtk_source_print_job_set_text_margins().  Whenever #GtkSourcePrintJob
is about to print a new text page, the signal will be emitted.  You
can then get the #GnomePrintContext being used with
gtk_source_print_job_get_print_context() and use Gnome Print functions
directly.  The space you allocate is inside the document margins
defined in the specified #GnomePrintConfig, but outside all print area
used by #GtkSourcePrintJob itself.
</para>

<para>
A quick bootstrap code sequence to get you started using
#GtkSourcePrintJob is given below:
</para>

<informalexample><programlisting>
static GnomePrintJob *
print_source_buffer_from_view (GtkSourceView *view, const gchar *title)
{
	GtkSourcePrintJob *job;
	GnomePrintJob *print_job;

	/* create the job using default print configuration */
	job = gtk_source_print_job_new (NULL);

	/* quickly setup the buffer, font and wrapping */
	gtk_source_print_job_setup_from_view (job, view);

	/* print line numbers every 5 lines, using default font */
	gtk_source_print_job_set_print_numbers (job, 5);

	/* print a header with the title centered */
	gtk_source_print_job_set_header_footer_font (job, "Sans Regular 12.0");
	gtk_source_print_job_set_header_format (job,
	                                        NULL,
	                                        title,
	                                        NULL,
	                                        TRUE);
	gtk_source_print_job_set_print_header (job, TRUE);

	/* print the page number in the page bottom */
	gtk_source_print_job_set_footer_format (job,
	                                        NULL,
	                                        NULL,
	                                        "Page %N of %Q",
	                                        TRUE);
	gtk_source_print_job_set_print_footer (job, TRUE);

	/* print the whole buffer and return the result */
	print_job = gtk_source_print_job_print (job);

	/* job is no longer needed */
	g_object_unref (job);

	return print_job;
}
</programlisting></informalexample>


<!-- ##### SECTION ./tmpl/printjob.sgml:See_Also ##### -->
<para>
The reference documentation for #GtkSourceBuffer.  You might also want
to check the <link linkend="">Gnome Print library</link> reference
documentation.
</para>


<!-- ##### SECTION ./tmpl/printjob.sgml:Short_Description ##### -->
Printing a #GtkSourceBuffer.


<!-- ##### SECTION ./tmpl/printjob.sgml:Stability_Level ##### -->



<!-- ##### SECTION ./tmpl/printjob.sgml:Title ##### -->
GtkSourcePrintJob


<!-- ##### SECTION ./tmpl/stylemanager.sgml:Long_Description ##### -->
<para>

</para>


<!-- ##### SECTION ./tmpl/stylemanager.sgml:See_Also ##### -->
<para>
#GtkSourceStyleScheme
</para>


<!-- ##### SECTION ./tmpl/stylemanager.sgml:Short_Description ##### -->



<!-- ##### SECTION ./tmpl/stylemanager.sgml:Stability_Level ##### -->



<!-- ##### SECTION ./tmpl/stylemanager.sgml:Title ##### -->
GtkSourceStyleManager


<!-- ##### SIGNAL GtkSourceBuffer::marker-updated ##### -->
<para>

</para>

@sourcebuffer: the object which received the signal.
@arg1: 

<!-- ##### ARG GtkSourceBuffer:highlight ##### -->
<para>

</para>


<!-- ##### STRUCT GtkSourceLanguageClass ##### -->
<para>

</para>

@parent_class: 

<!-- ##### STRUCT GtkSourceLanguageManagerClass ##### -->
<para>

</para>

@parent_class: 
@_gtk_source_reserved1: 
@_gtk_source_reserved2: 
@_gtk_source_reserved3: 
@_gtk_source_reserved4: 

<!-- ##### TYPEDEF GtkSourceMarker ##### -->
<para>

</para>


<!-- ##### TYPEDEF GtkSourceMarkerClass ##### -->
<para>

</para>


<!-- ##### STRUCT GtkSourceStyleManager ##### -->
<para>
<structname>GtkSourceStyleManager</structname> structure contains only
private members and should not be accessed directly.
</para>


<!-- ##### SIGNAL GtkSourceStyleManager::changed ##### -->
<para>

</para>

@sourcestylemanager: the object which received the signal.

<!-- ##### SIGNAL GtkSourceStyleManager::list-changed ##### -->
<para>

</para>

@sourcestylemanager: the object which received the signal.

<!-- ##### ARG GtkSourceStyleManager:scheme-ids ##### -->
<para>

</para>


<!-- ##### ARG GtkSourceStyleManager:search-path ##### -->
<para>

</para>


<!-- ##### STRUCT GtkSourceStyleManagerClass ##### -->
<para>

</para>

@parent_class: 
@changed: 
@_gtk_source_reserved1: 
@_gtk_source_reserved2: 
@_gtk_source_reserved3: 
@_gtk_source_reserved4: 

<!-- ##### STRUCT GtkSourceStyleSchemeClass ##### -->
<para>

</para>

@base_class: 
@_gtk_source_reserved1: 
@_gtk_source_reserved2: 

<!-- ##### ARG GtkSourceView:right-margin-line-alpha ##### -->
<para>

</para>


<!-- ##### ARG GtkSourceView:right-margin-line-color ##### -->
<para>

</para>


<!-- ##### ARG GtkSourceView:right-margin-overlay-alpha ##### -->
<para>

</para>


<!-- ##### ARG GtkSourceView:right-margin-overlay-color ##### -->
<para>

</para>


<!-- ##### ARG GtkSourceView:right-margin-overlay-toggle ##### -->
<para>

</para>


<!-- ##### ARG GtkSourceView:show-line-markers ##### -->
<para>

</para>


<!-- ##### ARG GtkSourceView:tabs-width ##### -->
<para>

</para>


<!-- ##### FUNCTION gtk_source_buffer_create_marker ##### -->
<para>

</para>

@buffer: 
@name: 
@type: 
@where: 
@Returns: 

<!-- ##### FUNCTION gtk_source_buffer_delete_marker ##### -->
<para>

</para>

@buffer: 
@marker: 

<!-- ##### FUNCTION gtk_source_buffer_get_first_marker ##### -->
<para>

</para>

@buffer: 
@Returns: 

<!-- ##### FUNCTION gtk_source_buffer_get_highlight ##### -->
<para>

</para>

@buffer: 
@Returns: 

<!-- ##### FUNCTION gtk_source_buffer_get_iter_at_marker ##### -->
<para>

</para>

@buffer: 
@iter: 
@marker: 

<!-- ##### FUNCTION gtk_source_buffer_get_last_marker ##### -->
<para>

</para>

@buffer: 
@Returns: 

<!-- ##### FUNCTION gtk_source_buffer_get_marker ##### -->
<para>

</para>

@buffer: 
@name: 
@Returns: 

<!-- ##### FUNCTION gtk_source_buffer_get_markers_in_region ##### -->
<para>

</para>

@buffer: 
@begin: 
@end: 
@Returns: 

<!-- ##### FUNCTION gtk_source_buffer_get_next_marker ##### -->
<para>

</para>

@buffer: 
@iter: 
@Returns: 

<!-- ##### FUNCTION gtk_source_buffer_get_prev_marker ##### -->
<para>

</para>

@buffer: 
@iter: 
@Returns: 

<!-- ##### FUNCTION gtk_source_buffer_move_marker ##### -->
<para>

</para>

@buffer: 
@marker: 
@where: 

<!-- ##### FUNCTION gtk_source_buffer_set_highlight ##### -->
<para>

</para>

@buffer: 
@highlight: 

<!-- ##### FUNCTION gtk_source_language_manager_get_available_languages ##### -->
<para>

</para>

@lm: 
@Returns: 

<!-- ##### FUNCTION gtk_source_language_manager_get_language_by_id ##### -->
<para>

</para>

@lm: 
@id: 
@Returns: 

<!-- ##### FUNCTION gtk_source_marker_get_buffer ##### -->
<para>

</para>

@marker: 
@Returns: 

<!-- ##### FUNCTION gtk_source_marker_get_line ##### -->
<para>

</para>

@marker: 
@Returns: 

<!-- ##### FUNCTION gtk_source_marker_get_marker_type ##### -->
<para>

</para>

@marker: 
@Returns: 

<!-- ##### FUNCTION gtk_source_marker_get_name ##### -->
<para>

</para>

@marker: 
@Returns: 

<!-- ##### FUNCTION gtk_source_marker_next ##### -->
<para>

</para>

@marker: 
@Returns: 

<!-- ##### FUNCTION gtk_source_marker_prev ##### -->
<para>

</para>

@marker: 
@Returns: 

<!-- ##### FUNCTION gtk_source_marker_set_marker_type ##### -->
<para>

</para>

@marker: 
@type: 

<!-- ##### FUNCTION gtk_source_style_manager_append_search_path ##### -->
<para>

</para>

@manager: 
@path: 

<!-- ##### FUNCTION gtk_source_style_manager_force_rescan ##### -->
<para>

</para>

@manager: 

<!-- ##### FUNCTION gtk_source_style_manager_get_default ##### -->
<para>

</para>

@Returns: 

<!-- ##### FUNCTION gtk_source_style_manager_get_default_scheme ##### -->
<para>

</para>

@manager: 
@Returns: 

<!-- ##### FUNCTION gtk_source_style_manager_get_scheme ##### -->
<para>

</para>

@manager: 
@scheme_id: 
@Returns: 

<!-- ##### FUNCTION gtk_source_style_manager_get_search_path ##### -->
<para>

</para>

@manager: 
@Returns: 

<!-- ##### FUNCTION gtk_source_style_manager_list_schemes ##### -->
<para>

</para>

@manager: 
@Returns: 

<!-- ##### FUNCTION gtk_source_style_manager_new ##### -->
<para>

</para>

@Returns: 

<!-- ##### FUNCTION gtk_source_style_manager_prepend_search_path ##### -->
<para>

</para>

@manager: 
@path: 

<!-- ##### FUNCTION gtk_source_style_manager_set_default_scheme ##### -->
<para>

</para>

@manager: 
@scheme: 

<!-- ##### FUNCTION gtk_source_style_manager_set_search_path ##### -->
<para>

</para>

@manager: 
@path: 

<!-- ##### FUNCTION gtk_source_style_new ##### -->
<para>

</para>

@Returns: 

<!-- ##### FUNCTION gtk_source_style_scheme_set_style ##### -->
<para>

</para>

@scheme: 
@name: 
@style: 

<!-- ##### FUNCTION gtk_source_view_get_marker_pixbuf ##### -->
<para>

</para>

@view: 
@marker_type: 
@Returns: 

<!-- ##### FUNCTION gtk_source_view_get_show_line_markers ##### -->
<para>

</para>

@view: 
@Returns: 

<!-- ##### FUNCTION gtk_source_view_get_tabs_width ##### -->
<para>

</para>

@view: 
@Returns: 

<!-- ##### FUNCTION gtk_source_view_set_marker_pixbuf ##### -->
<para>

</para>

@view: 
@marker_type: 
@pixbuf: 

<!-- ##### FUNCTION gtk_source_view_set_show_line_markers ##### -->
<para>

</para>

@view: 
@show: 

<!-- ##### FUNCTION gtk_source_view_set_tabs_width ##### -->
<para>

</para>

@view: 
@width: 

