summaryrefslogtreecommitdiff
path: root/test/editor.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-06-09 18:28:49 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-06-09 18:28:49 +0000
commitc3cde61e9879825c1547e366e2b9becedc1179e7 (patch)
tree9c4aa45caf1d1d9c670b4725b5c4bea93a01debb /test/editor.cxx
parent464c7d8ba5b57b3022609d80fb4c305ccfc1cb06 (diff)
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
Diffstat (limited to 'test/editor.cxx')
-rw-r--r--test/editor.cxx13
1 files changed, 5 insertions, 8 deletions
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 $".
//