Translating a syntax from TextPad to UltraEdit?

Translating a syntax from TextPad to UltraEdit?

601
Advanced UserAdvanced User
601

    Mar 06, 2005#1

    Hi all. I'm interesting in using UltraEdit to write scripts for a video game. Currently I use TextPad, and I have a syntax file for the scripting language in TextPad's format. Is there a way for me to easily convert this into a file that UltraEdit can read?

    Thanks.

    63
    Advanced UserAdvanced User
    63

      Mar 06, 2005#2

      Hey John

      Yes it's very easy! After all you've done the hard part.
      You have all your keywords done.

      In the help file lookup "Syntax Highlighting"
      There lots of good info!

      But the quickest way is to look at UltraEdit's "Wordfile.txt"
      and see how UE handles C, VB, HTML, Java, Perl ...
      You get the idea, and once you save the wordfile you see the result
      immediately.

      I really don't think you'll have any problems but please feel free to ask your questions here.

      Oh couple little things, always pick /L## 1 above the last language being used, on a new wordfile I beleive this is 9, so use /L10.
      Within each /C# (#= number) the keywords need to be in (ASCII) alphabetical order and the cool thing about that is UE can do that!
      Select the /C# group and pull down menu "File" --> "Sort"
      but each keyword needs to be on its own line for this to work.
      After I sort them I remove the CR/LFs for each word that begins with same
      character.
      case char const continue
      default do double defined
      Hey I think it's a done deal!
      Could you please post your new syntax file when you get done!

      Good Luck

        Mar 06, 2005#3

        Oh John

        Did you check UltraEdit's syntax highlighting files?
        http://www.ultraedit.com/downloads/extr ... files.html

        Navigating to wordfiles: I like to use the top title bar "Downloads" to "Extras" to "Wordfiles".

        601
        Advanced UserAdvanced User
        601

          Mar 06, 2005#4

          MrBillG wrote:In the help file lookup "Syntax Highlighting"
          There lots of good info!
          I was looking at this, but it seems awfully complicated. But I will read it more thoroughly and maybe it's not so bad. The syntax file I have for TextPad is very long, with tons of variables and constants, etc. but I guess it's just a matter of pasting it into the UE wordfile and using the proper symbols.