Author Topic: adding an icon next to the line number  (Read 3477 times)

boaz

  • Community Member
  • Posts: 43
  • Hero Points: 0
adding an icon next to the line number
« on: November 23, 2011, 02:09:18 PM »
I want to program a slick-C code that will add an icon next to the line number (similar to the one that happens if you add a breakpoint or a bookmark)

How do I do that?

boaz

  • Community Member
  • Posts: 43
  • Hero Points: 0
Re: adding an icon next to the line number
« Reply #1 on: November 24, 2011, 01:25:01 PM »
Well, after A LOT of digging in the SE code I found the answer:

The short answer:
What you seek is the _LineMarkerAdd (it appears in the help so you can read about it)

The more complicated answer:
Probably if you want to do something like that you'll need some kind of database to save your points of interest and display them on the opened files (look at annotations.e for a complicated but relevant example)
When you want to do that you might wanna look at _build_buf_list for your opened files)

Good luck!