Editor extension for a better representation of *.fem files
Ali Varli
Altair Community Member
- Install Geany and Geany Plugins (https://www.geany.org/download/releases/)
- Start Geany
- Activate the Lua plugin: Tools > Plugins Manager > Lua Script
- Press Preferences and copy the path
- Create a file in the path with the name "activated.lua"
- Copy the code below into this file
activated.lua:
if (geany.fileinfo ().ext == ".fem" or geany.fileinfo ().ext == ".dat") then -- 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", 8, 0xD8D8D8) geany.scintilla ("SCI_MULTIEDGEADDLINE", 16, 0xD8D8D8) geany.scintilla ("SCI_MULTIEDGEADDLINE", 24, 0xD8D8D8) geany.scintilla ("SCI_MULTIEDGEADDLINE", 32, 0xD8D8D8) geany.scintilla ("SCI_MULTIEDGEADDLINE", 40, 0xD8D8D8) geany.scintilla ("SCI_MULTIEDGEADDLINE", 48, 0xD8D8D8) geany.scintilla ("SCI_MULTIEDGEADDLINE", 56, 0xD8D8D8) geany.scintilla ("SCI_MULTIEDGEADDLINE", 64, 0xD8D8D8) geany.scintilla ("SCI_MULTIEDGEADDLINE", 72, 0xD8D8D8) geany.scintilla ("SCI_MULTIEDGEADDLINE", 80, 0xD8D8D8) end
An example:
Tagged:
0