From c3cde61e9879825c1547e366e2b9becedc1179e7 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 9 Jun 2002 18:28:49 +0000 Subject: Add documentation for using styles in text editor. Add placeholder for style attributes - hidden + underlined - for future use. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/editor.cxx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'test/editor.cxx') diff --git a/test/editor.cxx b/test/editor.cxx index faed3942a..fd1f54a25 100644 --- a/test/editor.cxx +++ b/test/editor.cxx @@ -1,5 +1,5 @@ // -// "$Id: editor.cxx,v 1.2.2.3.2.8 2002/06/09 13:35:49 easysw Exp $" +// "$Id: editor.cxx,v 1.2.2.3.2.9 2002/06/09 18:28:49 easysw Exp $" // // A simple text editor program for the Fast Light Tool Kit (FLTK). // @@ -57,8 +57,7 @@ Fl_Text_Buffer *textbuf = 0; // Syntax highlighting stuff... Fl_Text_Buffer *stylebuf = 0; Fl_Text_Display::Style_Table_Entry - styletable[] = - { + styletable[] = { // Style table { FL_BLACK, FL_COURIER, FL_NORMAL_SIZE }, // A - Plain { FL_DARK_GREEN, FL_COURIER_ITALIC, FL_NORMAL_SIZE }, // B - Line comments { FL_DARK_GREEN, FL_COURIER_ITALIC, FL_NORMAL_SIZE }, // C - Block comments @@ -67,8 +66,7 @@ Fl_Text_Display::Style_Table_Entry { FL_DARK_RED, FL_COURIER_BOLD, FL_NORMAL_SIZE }, // F - Types { FL_BLUE, FL_COURIER_BOLD, FL_NORMAL_SIZE } // G - Keywords }; -const char *code_keywords[] = // List of known C/C++ keywords... - { +const char *code_keywords[] = { // List of known C/C++ keywords... "and", "and_eq", "asm", @@ -104,8 +102,7 @@ const char *code_keywords[] = // List of known C/C++ keywords... "xor", "xor_eq" }; -const char *code_types[] = // List of known C/C++ types... - { +const char *code_types[] = { // List of known C/C++ types... "auto", "bool", "char", @@ -764,5 +761,5 @@ int main(int argc, char **argv) { } // -// End of "$Id: editor.cxx,v 1.2.2.3.2.8 2002/06/09 13:35:49 easysw Exp $". +// End of "$Id: editor.cxx,v 1.2.2.3.2.9 2002/06/09 18:28:49 easysw Exp $". // -- cgit v1.2.3