<p></p>
<p>This can be done with the <a href="https://plugins.geany.org/geanylua/" rel="nofollow">GeanyLua</a> plugin.  Here is a script that implements the feature: <a href="https://github.com/xiota/geanylua-scripts/tree/main/column-markers">column-markers</a>.  You can add as many column markers as you like.</p>
<p>The script sends messages to scintilla:</p>
<div class="highlight highlight-source-lua"><pre><span class="pl-c"><span class="pl-c">--</span> set multiple column marker mode</span>
geany.<span class="pl-c1">scintilla</span> (<span class="pl-s"><span class="pl-pds">"</span>SCI_SETEDGEMODE<span class="pl-pds">"</span></span>, <span class="pl-c1">3</span>, <span class="pl-c1">3</span>)

<span class="pl-c"><span class="pl-c">--</span> clear current markers</span>
geany.<span class="pl-c1">scintilla</span> (<span class="pl-s"><span class="pl-pds">"</span>SCI_MULTIEDGECLEARALL<span class="pl-pds">"</span></span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>)

<span class="pl-c"><span class="pl-c">--</span> add new column markers, colors are in BGR order</span>
geany.<span class="pl-c1">scintilla</span> (<span class="pl-s"><span class="pl-pds">"</span>SCI_MULTIEDGEADDLINE<span class="pl-pds">"</span></span>, <span class="pl-c1">60</span>, <span class="pl-c1">0xe5e5e5</span>)
geany.<span class="pl-c1">scintilla</span> (<span class="pl-s"><span class="pl-pds">"</span>SCI_MULTIEDGEADDLINE<span class="pl-pds">"</span></span>, <span class="pl-c1">72</span>, <span class="pl-c1">0xf0c098</span>) <span class="pl-c"><span class="pl-c">--</span> blue</span>
geany.<span class="pl-c1">scintilla</span> (<span class="pl-s"><span class="pl-pds">"</span>SCI_MULTIEDGEADDLINE<span class="pl-pds">"</span></span>, <span class="pl-c1">80</span>, <span class="pl-c1">0xdd8add</span>) <span class="pl-c"><span class="pl-c">--</span> purple</span>
geany.<span class="pl-c1">scintilla</span> (<span class="pl-s"><span class="pl-pds">"</span>SCI_MULTIEDGEADDLINE<span class="pl-pds">"</span></span>, <span class="pl-c1">88</span>, <span class="pl-c1">0xe5e5e5</span>)
geany.<span class="pl-c1">scintilla</span> (<span class="pl-s"><span class="pl-pds">"</span>SCI_MULTIEDGEADDLINE<span class="pl-pds">"</span></span>, <span class="pl-c1">96</span>, <span class="pl-c1">0x5161f6</span>) <span class="pl-c"><span class="pl-c">--</span> red</span></pre></div>
<p>Each document maintains it's own set of markers, and new documents are created with the default Geany marker.  So the script needs to be run for each document.  This can be done by editing <a href="https://plugins.geany.org/geanylua/geanylua-intro.html" rel="nofollow">event scripts</a> located at <code>~/.config/geany/plugins/geanylua/events</code>.  I've found that <code>activated.lua</code> is currently the best script to use for this.  To apply the setting to documents when Geany is first started requires signals that GeanyLua doesn't currently handle (<a href="https://github.com/geany/geany-plugins/pull/1112" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany-plugins/pull/1112/hovercard">geany-plugins#1112</a>).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2598#issuecomment-952964714">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ25YFPCH6PBDD576NDUJABHTANCNFSM4RZ2TDCQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ7G3NPTBIME6AS4IP3UJABHTA5CNFSM4RZ2TDC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHDGRM2Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2598#issuecomment-952964714",
"url": "https://github.com/geany/geany/issues/2598#issuecomment-952964714",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>