• Login
Community
  • Login

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

Scheduled Pinned Locked Moved General Discussion
helpneeds helpprogramprogramminglanguage
3 Posts 2 Posters 2.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q
    Quality Books100
    last edited by Mar 12, 2021, 7:04 PM

    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.

    P 1 Reply Last reply Mar 12, 2021, 7:54 PM Reply Quote 0
    • P
      PeterJones @Quality Books100
      last edited by Mar 12, 2021, 7:54 PM

      @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++.

      1 Reply Last reply Reply Quote 2
      • Q
        Quality Books100
        last edited by Mar 12, 2021, 8:02 PM

        Ok, thanks.
        This helped me.

        1 Reply Last reply Reply Quote 0
        2 out of 3
        • First post
          2/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors