<?xml version="1.0"?>
<page id="Gimp.ConfigWriter.comment_mode"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="Gimp.ConfigWriter" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>none</api:type>
      </api:returns>
      <api:name>gimp_config_writer_comment_mode</api:name>
      <api:arg>
        <api:type>Gimp.ConfigWriter</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>bool</api:type>
        <api:name>enable</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.ConfigWriter.comment_mode</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.ConfigWriter, bool)
@returns(none)
def comment_mode(self, enable):
    # Python wrapper for gimp_config_writer_comment_mode()
  </code></synopsis>
  <p>This function toggles whether the <code>self</code> should create commented
or uncommented output. This feature is used to generate the
system-wide installed gimprc that documents the default settings.</p>  <p>Since comments have to start at the beginning of a line, this
function will insert a newline if necessary.</p>
  <p>Since 2.4</p>
<terms>
<item>
<title><code>self</code></title>
  <p>a <link xref="Gimp.ConfigWriter"/></p>
</item>
<item>
<title><code>enable</code></title>
  <p><code>True</code> to enable comment mode, <code>False</code> to disable it</p>
</item>
</terms>

</page>
