[txmt-dev] Setting the background color of a specific line

Jacob Carlborg doob at me.com
Tue Apr 1 07:17:12 UTC 2014


I'm playing around with the TextMate source code and I'm trying to set 
the background color for a specific line. As I understand the source 
code there's a class, OakTextView, that is the main class for the text 
view. This view contains a instance of layout_t, which contains a tree 
of paragraph_t, which contains a vector of node_t, each node_t contains 
a line_t. line_t have a method to render the background.

I'm having trouble to get out the line_t which matches a given line 
number. How can I do that?

-- 
/Jacob Carlborg



More information about the textmate-dev mailing list