Syntax highlighting and auto-completion for LSL and OSSL in Notepad++.
This project includes:
- a User Defined Language (UDL) for syntax highlighting
- an auto-completion XML file for
ll...andos... - auto-completion entries for:
- functions
- events
- types
- keywords
- constants
autoCompletion/
LSL-OSSL.xml
docs/
INSTALL.md
userDefineLangs/
LSL-OSSL_Language.xml
README.md
-
userDefineLangs/LSL-OSSL_Language.xml
User Defined Language file for syntax highlighting in Notepad++. -
autoCompletion/LSL-OSSL.xml
Auto-completion file for Notepad++.
The language name inside Notepad++ is:
LSL-OSSL
Because of that:
- the auto-completion file must be named
LSL-OSSL.xml - the UDL export file can keep a descriptive filename such as
LSL-OSSL_Language.xml
Current package includes:
- LSL functions
- OSSL functions
- events
- types
- keywords
- constants
- syntax highlighting
- auto-completion
- Import
userDefineLangs/LSL-OSSL_Language.xmlin Notepad++. - Copy
autoCompletion/LSL-OSSL.xmlinto the Notepad++autoCompletionfolder. - Restart Notepad++.
- Open a
.lslor.osslfile. - If needed, select
Language > LSL-OSSL.
default
{
state_entry()
{
llOwnerSay("Hello");
osTeleportAgent("00000000-0000-0000-0000-000000000000", 128, 128, 25);
}
touch_start(integer total_number)
{
llSay(0, "Touched");
}
}Expected result:
defaulthighlightedstate_entryandtouch_starthighlightedintegerhighlightedllOwnerSay,llSay,osTeleportAgenthighlighted- auto-completion available for functions, events, types, keywords, and constants
- The package works best when Notepad++ is fully restarted after updating XML files.
- The UDL and auto-completion are separate files and do not need the same filename.
- Only the language name must match the auto-completion filename.
autoCompletion/
LSL-OSSL.xml
docs/
INSTALL.md
userDefineLangs/
LSL-OSSL_Language.xml
README.md
-
userDefineLangs/LSL-OSSL_Language.xml
Fichier UDL pour la coloration syntaxique dans Notepad++. -
autoCompletion/LSL-OSSL.xml
Fichier d’auto-complétion pour Notepad++.
Le nom du langage dans Notepad++ est :
LSL-OSSL
Donc :
- le fichier d’auto-complétion doit s’appeler
LSL-OSSL.xml - le fichier UDL exporté peut garder un nom descriptif comme
LSL-OSSL_Language.xml
Le pack inclut actuellement :
- les fonctions LSL
- les fonctions OSSL
- les événements
- les types
- les mots-clés
- les constantes
- la coloration syntaxique
- l’auto-complétion
- Importer
userDefineLangs/LSL-OSSL_Language.xmldans Notepad++. - Copier
autoCompletion/LSL-OSSL.xmldans le dossierautoCompletionde Notepad++. - Redémarrer complètement Notepad++.
- Ouvrir un fichier
.lslou.ossl. - Si besoin, choisir
Langage > LSL-OSSL.
default
{
state_entry()
{
llOwnerSay("Hello");
osTeleportAgent("00000000-0000-0000-0000-000000000000", 128, 128, 25);
}
touch_start(integer total_number)
{
llSay(0, "Touched");
}
}Résultat attendu :
defaultcoloréstate_entryettouch_startcolorésintegercoloréllOwnerSay,llSay,osTeleportAgentcolorés- auto-complétion disponible pour les fonctions, événements, types, mots-clés et constantes
- Le pack fonctionne mieux après un redémarrage complet de Notepad++ après modification des fichiers XML.
- Le fichier UDL et le fichier d’auto-complétion sont deux fichiers différents et n’ont pas besoin d’avoir le même nom.
- Seul le nom du langage doit correspondre au nom du fichier d’auto-complétion.