This can be done with the GeanyLua plugin. Here is a script that implements the feature: column-markers. You can add as many column markers as you like.

The script sends messages to scintilla:

-- set multiple column marker mode
geany.scintilla ("SCI_SETEDGEMODE", 3, 3)

-- clear current markers
geany.scintilla ("SCI_MULTIEDGECLEARALL", 0, 0)

-- add new column markers, colors are in BGR order
geany.scintilla ("SCI_MULTIEDGEADDLINE", 60, 0xe5e5e5)
geany.scintilla ("SCI_MULTIEDGEADDLINE", 72, 0xf0c098) -- blue
geany.scintilla ("SCI_MULTIEDGEADDLINE", 80, 0xdd8add) -- purple
geany.scintilla ("SCI_MULTIEDGEADDLINE", 88, 0xe5e5e5)
geany.scintilla ("SCI_MULTIEDGEADDLINE", 96, 0x5161f6) -- red

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 event scripts located at ~/.config/geany/plugins/geanylua/events. I've found that activated.lua 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 (geany-plugins#1112).


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.