summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2007-07-20 12:35:36 +0000
committerxue <>2007-07-20 12:35:36 +0000
commitf59f9b90ce973183b574d0db55705a370461c21c (patch)
treee1f24da50f5e00fbfcc7a9b3c4b4107f6658ab48
parent786dde43ea21c1990071683a8cf5efd3bd1b791d (diff)
Description change.
-rw-r--r--demos/blog-tutorial/protected/pages/Day2/CreateDB.page2
-rw-r--r--framework/Web/UI/WebControls/TTextHighlighter.php5
2 files changed, 4 insertions, 3 deletions
diff --git a/demos/blog-tutorial/protected/pages/Day2/CreateDB.page b/demos/blog-tutorial/protected/pages/Day2/CreateDB.page
index 7c914962..1f7085d7 100644
--- a/demos/blog-tutorial/protected/pages/Day2/CreateDB.page
+++ b/demos/blog-tutorial/protected/pages/Day2/CreateDB.page
@@ -16,7 +16,7 @@ For tutorial purpose, we have simplified the requirements of our blog system so
We use a SQLite 3 database to keep our data. We first convert the ER diagram into the following SQL statements and save them in the file <tt>protected/schema.sql</tt>.
</p>
-<com:TTextHighlighter CssClass="source">
+<com:TTextHighlighter CssClass="source" Language="sql">
/* create users table */
CREATE TABLE users (
username VARCHAR(128) NOT NULL PRIMARY KEY,
diff --git a/framework/Web/UI/WebControls/TTextHighlighter.php b/framework/Web/UI/WebControls/TTextHighlighter.php
index 0f221cc2..e40811d1 100644
--- a/framework/Web/UI/WebControls/TTextHighlighter.php
+++ b/framework/Web/UI/WebControls/TTextHighlighter.php
@@ -22,8 +22,9 @@ Prado::using('System.Web.UI.WebControls.TTextProcessor');
* static text and rendering results of child controls.
* You can set {@link setLanguage Language} to specify what kind of syntax
* the body content is. Currently, TTextHighlighter supports the following
- * languages: 'php','prado','css','html','javascript' and 'xml', where 'prado'
- * refers to PRADO template syntax. By setting {@link setShowLineNumbers ShowLineNumbers}
+ * languages: ABAP, CPP, CSS, DIFF, DTD, HTML, JAVA, JAVASCRIPT, MYSQL, PERL,
+ * PHP, PYTHON, RUBY, SQL, XML and PRADO, where PRADO refers to PRADO template
+ * syntax. By setting {@link setShowLineNumbers ShowLineNumbers}
* to true, the highlighted result may be shown with line numbers.
*
* @author Wei Zhuo<weizhuo[at]gmail[dot]com>