set_link_text_style

Declaration

set_link_text_style (flag: INTEGER; value: BOOLEAN)

Description

Lets the user set whether to use a particular text style for auto-hilited links (links are auto-hilited by default). The supported text styles are:

Simply pass a flag and pass a value to turn it on or off.

Note: changes will be reflected only in newly-loaded documents

See Also

set_link_text_color
set_link_background_color
preferences functions

Example

script store_user_prefs is
  -- this might be used to let the user choose
  -- the text style and color of all links
  set_link_text_color (text_color)
  set_link_background_color (bg_color)
  set_link_text_style (Bold, use_bold)
  set_link_text_style (Italic, use_italic)
  set_link_text_style (Underline, use_underline)
end