How do I make an "user-defined language"?



  • I am wondering how to make a user-defined language?
    I want to make a language named GML and I don’t know how to make this language.

    It is going to be like Python. Simple and easy to use.
    I just need help knowing the contents for a programming language.

    Please help me…

    I want to make it before Easter so I can spend Easter like normal.



  • @Quality-Books100 ,

    I am wondering how to make a user-defined language?

    To define a User Defined Language for syntax highlighting, you start by opening the UDL dialog using
    Language > User Defined Language > Define Your Language. Create New… and give it a name (GML). Fill out the keywords, comments, operators & delimiters, etc. Put gml in the Ext box, assuming that GML filenames end in .gml

    I just need help knowing the contents for a programming language.

    The “contents for a programming language”, from the UDL perspective, are the keywords, operator symbols, and the like, that are defined by the language you are making the UDL for. I assume that GML has keywords like if and for, so those would go in an appropriate Group on the Keywords Lists tab. I assume that GML has operators like + and -: these would go in the appropriate boxes on the Operators & Delimiters page.

    For details on what all those different boxes mean, and what syntax to use, look at the official online user manual’s UDL page for the overview, and Ivan Radic’s excellent detailed description at his website, which is so complete that it is linked from inside the UDL dialog box or the UDL docked panel inside Notepad++.



  • Ok, thanks.
    This helped me.