Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LSL-OSSL-Language-Support-for-Notepad++

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... and os...
  • auto-completion entries for:
    • functions
    • events
    • types
    • keywords
    • constants

English

Included files

autoCompletion/
    LSL-OSSL.xml
docs/
    INSTALL.md
userDefineLangs/
    LSL-OSSL_Language.xml
README.md

File roles

  • userDefineLangs/LSL-OSSL_Language.xml
    User Defined Language file for syntax highlighting in Notepad++.

  • autoCompletion/LSL-OSSL.xml
    Auto-completion file for Notepad++.

Important naming rule

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

Features

Current package includes:

  • LSL functions
  • OSSL functions
  • events
  • types
  • keywords
  • constants
  • syntax highlighting
  • auto-completion

Installation summary

  1. Import userDefineLangs/LSL-OSSL_Language.xml in Notepad++.
  2. Copy autoCompletion/LSL-OSSL.xml into the Notepad++ autoCompletion folder.
  3. Restart Notepad++.
  4. Open a .lsl or .ossl file.
  5. If needed, select Language > LSL-OSSL.

Quick test

default
{
    state_entry()
    {
        llOwnerSay("Hello");
        osTeleportAgent("00000000-0000-0000-0000-000000000000", 128, 128, 25);
    }

    touch_start(integer total_number)
    {
        llSay(0, "Touched");
    }
}

Expected result:

  • default highlighted
  • state_entry and touch_start highlighted
  • integer highlighted
  • llOwnerSay, llSay, osTeleportAgent highlighted
  • auto-completion available for functions, events, types, keywords, and constants

Notes

  • 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.

Français

Fichiers inclus

autoCompletion/
    LSL-OSSL.xml
docs/
    INSTALL.md
userDefineLangs/
    LSL-OSSL_Language.xml
README.md

Rôle des fichiers

  • userDefineLangs/LSL-OSSL_Language.xml
    Fichier UDL pour la coloration syntaxique dans Notepad++.

  • autoCompletion/LSL-OSSL.xml
    Fichier d’auto-complétion pour Notepad++.

Règle importante sur les noms

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

Fonctionnalités

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

Résumé de l’installation

  1. Importer userDefineLangs/LSL-OSSL_Language.xml dans Notepad++.
  2. Copier autoCompletion/LSL-OSSL.xml dans le dossier autoCompletion de Notepad++.
  3. Redémarrer complètement Notepad++.
  4. Ouvrir un fichier .lsl ou .ossl.
  5. Si besoin, choisir Langage > LSL-OSSL.

Test rapide

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 :

  • default coloré
  • state_entry et touch_start colorés
  • integer coloré
  • llOwnerSay, llSay, osTeleportAgent colorés
  • auto-complétion disponible pour les fonctions, événements, types, mots-clés et constantes

Notes

  • 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.

About

Syntax highlighting and auto-completion for LSL and OSSL in Notepad++.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors