<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - Fold margin colors - Comments</title>
 <link>http://community.activestate.com/forum-topic/fold-margin-colors</link>
 <description>Comments for &quot;Fold margin colors&quot;</description>
 <language>en</language>
<item>
 <title>Perfect, thanks.
On _FOLDER,</title>
 <link>http://community.activestate.com/forum-topic/fold-margin-colors#comment-5386</link>
 <description>&lt;p&gt;Perfect, thanks.&lt;/p&gt;
&lt;p&gt;On _FOLDER, _FOLEROPEN, _FOLDEROPENMID, and _FOLDEREND, the setting the foreground sets the fill color.&lt;br /&gt;
Setting the background on all of them will set the (out)line color.&lt;/p&gt;
</description>
 <pubDate>Thu, 15 May 2008 13:45:46 -0700</pubDate>
 <dc:creator>airdrik</dc:creator>
 <guid isPermaLink="false">comment 5386 at http://community.activestate.com</guid>
</item>
<item>
 <title>Actually, most fold markers don&#039;t have images</title>
 <link>http://community.activestate.com/forum-topic/fold-margin-colors#comment-5385</link>
 <description>&lt;p&gt;After examing marker the code &quot;LineMarker::Draw&quot; in:&lt;br /&gt;
&lt;a href=&quot;http://svn.openkomodo.com/openkomodo/view/openkomodo/trunk/contrib/scintilla/src/LineMarker.cxx&quot; title=&quot;http://svn.openkomodo.com/openkomodo/view/openkomodo/trunk/contrib/scintilla/src/LineMarker.cxx&quot;&gt;http://svn.openkomodo.com/openkomodo/view/openkomodo/trunk/contrib/scint...&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;These fold markers are just drawn in directory as blocks/glyphs and as such do not have an xpm image.&lt;/p&gt;
&lt;p&gt;It seems you should be then able to set the marker color using the following API methods:&lt;br /&gt;
&lt;a href=&quot;http://scintilla.sourceforge.net/ScintillaDoc.html#SCI_MARKERSETFORE&quot; title=&quot;http://scintilla.sourceforge.net/ScintillaDoc.html#SCI_MARKERSETFORE&quot;&gt;http://scintilla.sourceforge.net/ScintillaDoc.html#SCI_MARKERSETFORE&lt;/a&gt;&lt;/p&gt;
&lt;div class=&quot;geshi-block&quot;&gt;
&lt;div class=&quot;geshifilter javascript&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;span style=&quot;color: #009900; font-style: italic;&quot;&gt;/**&lt;br /&gt;
&amp;nbsp;* @type {Components.interfaces.ISciMoz}&lt;br /&gt;
&amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; scimoz = ko.&lt;span style=&quot;color: #006600;&quot;&gt;views&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;manager&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;currentView&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;scimoz&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #009900; font-style: italic;&quot;&gt;// Note that the color value is BGR, not RGB!&lt;/span&gt;&lt;br /&gt;
scimoz.&lt;span style=&quot;color: #006600;&quot;&gt;markerSetBack&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;scimoz.&lt;span style=&quot;color: #006600;&quot;&gt;SC_MARKNUM_FOLDER&lt;/span&gt;, 0xFFFFFF&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
scimoz.&lt;span style=&quot;color: #006600;&quot;&gt;markerSetFore&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;scimoz.&lt;span style=&quot;color: #006600;&quot;&gt;SC_MARKNUM_FOLDER&lt;/span&gt;, 0x000000&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #009900; font-style: italic;&quot;&gt;// Or you may want to just set all the marker types in one go:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; i=&lt;span style=&quot;color: #CC0000;&quot;&gt;0&lt;/span&gt;; i &amp;lt;= scimoz.&lt;span style=&quot;color: #006600;&quot;&gt;MARKER_MAX&lt;/span&gt;; i++&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; scimoz.&lt;span style=&quot;color: #006600;&quot;&gt;markerSetBack&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;i, 0xFFFFFF&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; scimoz.&lt;span style=&quot;color: #006600;&quot;&gt;markerSetFore&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;i, 0x000000&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;geshi-plain&quot;&gt;/**
 * @type {Components.interfaces.ISciMoz}
 */
var scimoz = ko.views.manager.currentView.scimoz;
// Note that the color value is BGR, not RGB!
scimoz.markerSetBack(scimoz.SC_MARKNUM_FOLDER, 0xFFFFFF);
scimoz.markerSetFore(scimoz.SC_MARKNUM_FOLDER, 0x000000);
// Or you may want to just set all the marker types in one go:
for (var i=0; i &amp;lt;= scimoz.MARKER_MAX; i++) {
  scimoz.markerSetBack(i, 0xFFFFFF);
  scimoz.markerSetFore(i, 0x000000);
}&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Is that working for you?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Todd&lt;/p&gt;
</description>
 <pubDate>Thu, 15 May 2008 08:59:34 -0700</pubDate>
 <dc:creator>ToddW</dc:creator>
 <guid isPermaLink="false">comment 5385 at http://community.activestate.com</guid>
</item>
<item>
 <title>Thanks for the quick</title>
 <link>http://community.activestate.com/forum-topic/fold-margin-colors#comment-5382</link>
 <description>&lt;p&gt;Thanks for the quick responses.  I&#039;ll take a look.&lt;/p&gt;
&lt;p&gt;Where can I find the current set of images?  Would I be correct in assuming they are in one of the jars or archives somewhere?&lt;br /&gt;
I would like something to base my images off of.&lt;/p&gt;
</description>
 <pubDate>Thu, 15 May 2008 07:10:04 -0700</pubDate>
 <dc:creator>airdrik</dc:creator>
 <guid isPermaLink="false">comment 5382 at http://community.activestate.com</guid>
</item>
<item>
 <title>re: fold markers</title>
 <link>http://community.activestate.com/forum-topic/fold-margin-colors#comment-5379</link>
 <description>&lt;p&gt;These are actual images (in xpm format), so you&#039;ll need to create your own images for this purpose, see:&lt;br /&gt;
&lt;a href=&quot;http://scintilla.sourceforge.net/ScintillaDoc.html#SCI_MARKERDEFINE&quot; title=&quot;http://scintilla.sourceforge.net/ScintillaDoc.html#SCI_MARKERDEFINE&quot;&gt;http://scintilla.sourceforge.net/ScintillaDoc.html#SCI_MARKERDEFINE&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://scintilla.sourceforge.net/ScintillaDoc.html#SCI_MARKERDEFINEPIXMAP&quot; title=&quot;http://scintilla.sourceforge.net/ScintillaDoc.html#SCI_MARKERDEFINEPIXMAP&quot;&gt;http://scintilla.sourceforge.net/ScintillaDoc.html#SCI_MARKERDEFINEPIXMA...&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The existing fold markers can be selected in the Komodo UI through Komodo&#039;s &quot;Editor-&amp;gt;Smart Editing-&amp;gt;Folding&quot; preferences.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Todd&lt;/p&gt;
</description>
 <pubDate>Wed, 14 May 2008 13:55:40 -0700</pubDate>
 <dc:creator>ToddW</dc:creator>
 <guid isPermaLink="false">comment 5379 at http://community.activestate.com</guid>
</item>
<item>
 <title>That works for the</title>
 <link>http://community.activestate.com/forum-topic/fold-margin-colors#comment-5378</link>
 <description>&lt;p&gt;That works for the background of the folds (which you need the following to produce a solid color, for the record:&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;ko.views.manager.currentView.scimoz.setFoldMarginColour(1, 0x400000)
ko.views.manager.currentView.scimoz.setFoldMarginHiColour(1, 0x400000)&lt;/pre&gt;&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;I would also like to be able to change the colors of the fold markers (the lines on the fold margin indicating collapsible areas) as well.  Any ideas?&lt;/p&gt;
</description>
 <pubDate>Wed, 14 May 2008 12:18:43 -0700</pubDate>
 <dc:creator>airdrik</dc:creator>
 <guid isPermaLink="false">comment 5378 at http://community.activestate.com</guid>
</item>
<item>
 <title>re: fold margin colors</title>
 <link>http://community.activestate.com/forum-topic/fold-margin-colors#comment-5377</link>
 <description>&lt;p&gt;There is no UI preference for setting the fold margin colors, but there is a way to do this through the Komodo JavaScript API. Create a new JavaScript macro in Komodo&#039;s toolbox named &quot;set margin color&quot; with the following code contents:&lt;/p&gt;
&lt;div class=&quot;geshi-block&quot;&gt;
&lt;div class=&quot;geshifilter javascript&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;span style=&quot;color: #009900; font-style: italic;&quot;&gt;// Note that the color value is BGR, not RGB!&lt;/span&gt;&lt;br /&gt;
ko.&lt;span style=&quot;color: #006600;&quot;&gt;views&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;manager&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;currentView&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;scimoz&lt;/span&gt;.&lt;span style=&quot;color: #006600;&quot;&gt;setFoldMarginColour&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CC0000;&quot;&gt;1&lt;/span&gt;, 0x0000FF&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/div&gt;
&lt;pre class=&quot;geshi-plain&quot;&gt;// Note that the color value is BGR, not RGB!
ko.views.manager.currentView.scimoz.setFoldMarginColour(1, 0x0000FF);&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Triggering this macro will change the color of the margin. You can find out more Scintilla (scimoz) api methods here:&lt;br /&gt;
&lt;a href=&quot;http://scintilla.sourceforge.net/ScintillaDoc.html#SCI_SETFOLDMARGINCOLOUR&quot; title=&quot;http://scintilla.sourceforge.net/ScintillaDoc.html#SCI_SETFOLDMARGINCOLOUR&quot;&gt;http://scintilla.sourceforge.net/ScintillaDoc.html#SCI_SETFOLDMARGINCOLO...&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Todd&lt;/p&gt;
</description>
 <pubDate>Wed, 14 May 2008 10:43:31 -0700</pubDate>
 <dc:creator>ToddW</dc:creator>
 <guid isPermaLink="false">comment 5377 at http://community.activestate.com</guid>
</item>
<item>
 <title>Fold margin colors</title>
 <link>http://community.activestate.com/forum-topic/fold-margin-colors</link>
 <description>&lt;p&gt;Is there a way to customize the fold margin colors (in komodo 4.3 on winXP 64)?&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/fold-margin-colors#comments</comments>
 <category domain="http://community.activestate.com/forums/komodo-support-0">Komodo support</category>
 <category domain="http://community.activestate.com/os/windows">Windows</category>
 <pubDate>Wed, 14 May 2008 10:08:14 -0700</pubDate>
 <dc:creator>airdrik</dc:creator>
 <guid isPermaLink="false">2327 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
