The code below seems to work. Look up _default_color in the help. You can select bold or underscore if you want.
Any function that starts with _switchbuf_ gets called when you switch to a new buffer and any function that starts with _buffer_add_ gets called when you open a file.
Another possibility is the _SetTextColor function but I don't know how well that would work.
Also, you can probably use SlickEdit's selective display to hide everything except note headings or hide all notes of a certain type or something.
If you're interested in macro programming, have a look at SlickCMacroBestPractices.pdf in the slick installation docs folder.
#include "slick.sh"
static void _select_my_line_comment_color()
{
//if (_get_extension(p_buf_name) == 'cpp') {
if (p_lexer_name == 'cpp')
_default_color(CFG_LINE_COMMENT,0x8000,0xFFFFFF,F_ITALIC|F_INHERIT_BG_COLOR);
else
_default_color(CFG_LINE_COMMENT,0x808000,0xFFFFFF,F_INHERIT_BG_COLOR);
}
void _buffer_add_my_color()
{
_select_my_line_comment_color();
}
void _switchbuf_my_color()
{
_select_my_line_comment_color();
}
_command void my_date() name_info(','VSARG2_REQUIRES_EDITORCTL)
{
insert_line('Date: ' :+ _date() ' ' _time());
}