How to add a language to the wordfile?

How to add a language to the wordfile?

2
NewbieNewbie
2

    Nov 21, 2005#1

    First, sorry for my English....

    I have installed UEStudio 05 and I want to add some Wordfile so that to have "Syntax Highlighting". I have used (by default) up to the 11th language. From 12th to 20 are empty.
    Imagine I want the "Syntax Highlighting" for SQL. How can I do that? I don't know how to edit the wordfile.txt. I went to /additional download/wordfile and I see that there were lots of languages and I saw SQL but I don't know how to use it.

    If anyone can explaime how to do it with SQL I'll be able to do it with other languages.

    And I have the same problem with trying to add "auto complete" for java for instance.

    Sorry for the stupid questions

    thanks

    3

      Nov 27, 2005#2

      Crapodino,

      To add a new language to the word file, just copy and paste it to the end of your existing word file. You can do this directly from the webpage or you can save the file to your own computer first.

      For example, go to Downloads > Extras > Wordfiles and click on SQL/SQC. After the page loads, use your mouse to highlight the entire file. Right click and "copy".  

      Open you existing wordfile in UE and put the cursor two lines past the end of the last language file (in your case, that would be /L11).  Right click and click "Paste".

      You will need to change the number in the first line to read:

      /L12  (if 12 is your next unused language definition).

      I also notice that in the Wordfile from the download section, there are no descriptions after the lines that begin:

      /C1
      /C2  etc.  

      You probably want to add something there so that a description shows up in the configuration menu when you assign colors. Something like this:

      /C1"Keywords"     <--Note: there is no space after /C1.
      /C2"Data Types"  

      Verify also that the list of delimiter characters - line starting with /Delimiters = contains also the tab character. Browsers display a tab as spaces and so it could be that you have 2 spaces in the list after copying from the browser window instead of a space and a tab.

      Then, just save the wordfile. You will probably want to change some things to suit your taste. Just open an existing SQL file and see how it looks.

      -Michael

      63
      Advanced UserAdvanced User
      63

        Nov 27, 2005#3

        Michael great answer!

        I have had to quit UltraEdit and restart UltraEdit to get a new language to show up in highlight list.

        344
        MasterMaster
        344

          Nov 27, 2005#4

          Normally you don't need to exit UE.
          Just switch between the opened (and freshly saved) wordfile to the tab you want to colorize. UE should do that.

          Also, you should rename the wordfile.txt to wordfile.uwe, so you can even colorize the wordfile itself ! (see downloads).
          Search for Wordfile Editing and you'll get it.
          Don't forget to configure UE to that new name then ;-)

          rds Bego
          Normally using all newest english version incl. each hotfix. Win 10 64 bit

          2
          NewbieNewbie
          2

            Nov 28, 2005#5

            Really thanks. It worked perfectly.

            thanks