OSDN Git Service

Doc - Semantic highlighting
authorLeena Miettinen <riitta-leena.miettinen@nokia.com>
Wed, 6 Oct 2010 09:54:13 +0000 (11:54 +0200)
committerLeena Miettinen <riitta-leena.miettinen@nokia.com>
Fri, 8 Oct 2010 14:27:12 +0000 (16:27 +0200)
Reviewed-by: Erik Verbruggen
doc/qtcreator.qdoc

index 9382259..0b3f5ad 100644 (file)
     \key{Ctrl+E, 0}. To remove all but the currently selected split view,
     select \gui Window > \gui{Remove All Splits} or press \key{Ctrl+E, 1}.
 
+    \section1 Semantic Highlighting
+
+    Qt Creator understands the C++ and QML languages as code, not as plain text.
+    It reads the source code, analyzes it, and highlights it based on the
+    semantic checks that it does for the following code elements:
+
+    \list
+
+        \o Types (such as classes, structs, and type definitions)
+
+        \o Local variables
+
+        \o Class fields
+
+        \o Virtual methods
+
+    \endlist
+
+    To specify the color scheme to use for semantic highlighting, select
+    \gui {Tools > Options... > Text Editor > Fonts & Color}.
+
+    Qt Creator supports syntax highlighting also for other types of files than
+    C++ or QML. For more information, see \l{Generic Highlighting}.
 
     \section1 Highlighting and Folding Blocks