|
This article contains instructions on how to enable LassoScript syntax coloring in BBEdit 8.5.x and how to use AppleScript to switch language modes between LassoScript, HTML and JavaScript.
This codeless language module is designed to work with both the LassoScript <?lassoscript ?> and square-bracket [] syntaxes for Lasso Professional 8.5.1.
Filenames must end with ".lasso", ".las" or ".inc". You can modify the file "LassoScript.plist" to include other file suffixes.
The BBLMKeywordList is current as of Lasso Professional 8.5.1. To update the BBLMKeywordList, edit "LassoScript.plist" as specified in this message on LassoTalk: Subject: List of all LDML tags and keywords.
I modified the SQL statement from that message as shown below. I use BBEdit to strip square brackets, extra spaces, and the ... for matching container tags. Once I get my result modified, I paste it into my plist and use BBEdit's Text > Process Duplicate Lines command to remove duplicate keywords.
Begin by going to the LassoAdmin database browser:
http://localhost/DatabaseBrowser.0.LassoApp?tab1=browse&tab2=sql
Use the following search parameters (blanks are irrelevant) and SQL statement:
Datasource: Lasso Connector for SQL Lite
Host: Internal
Database: LDML8_Reference
History:
SQL Statement:
SELECT tag_name FROM tags ORDER BY tag_sort;
SELECT DISTINCT param_name FROM parameters WHERE param_name LIKE "-%" ORDER BY param_name;
SELECT DISTINCT param_value FROM parameters WHERE param_value LIKE "-%" ORDER BY param_value;
Show Fields:
Max Records: All
Max Field Lines:
Submit on Return: No
Complete information on writing Codeless Language Modules can be found in Appendix D of the BBEdit manual.
|