[TxMt] Re: showing preview of css colors
Allan Odgaard
mailinglist at textmate.org
Tue May 24 12:39:33 UTC 2016
On 24 May 2016, at 14:23, Fabian Zeindl wrote:
> Does it have to be a file or can it be base64 data as well?
You have to provide a path which serves as the identifier for the mark,
for example from within TextMate you can press ⌃R on the following
line:
"$TM_MATE" --set-mark "$TM_APP_PATH/Contents/Resources/TextMate.icns"
--line 3
This shows the TextMate app icon in the gutter’s third line. You can
clear it again using:
"$TM_MATE" --clear-mark "$TM_APP_PATH/Contents/Resources/TextMate.icns"
--line 3
However, now that I just tested the above I realize that gutter marks
are rendered as monochrome so that they match any theme.
Though should anyone provide a proof-of-concept for this, I can help out
adding support for setting color marks. Could base this simply on image
naming conventions to avoid needing new API.
The “difficult” part is scanning the current CSS file and generating
image squares for all lines with color specifications, once we have
that, it should not be a problem hooking it up to TextMate.
More information about the textmate
mailing list