Alpha Video Training
Results 1 to 14 of 14

Thread: Syntax highlighting file for UltraEdit

  1. #1
    Member
    Real Name
    brett sinclair
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    858

    Default Syntax highlighting file for UltraEdit

    Here is a file to use as an Alpha Five Xbasic syntax highlighter with the text editor UltraEdit. It required UltraEdit version 11 or later.

    The file is zipped in plain text format. It is ready to copy and append to the existing 'wordfile.txt' file in your UltraEdit program directory, e.g. C:\Program files\IDM Computer Solutions\UltraEdit-32

    Make a backup copy of your existing wordfile before adding the attached syntax to it.

    From memory UltraEdit allows up to 20 syntax highlighting definitions in the wordfile. The A5 Xbasic highlighting definition supplied here is numbered 15 (it's the /L15 statement in the first record of the attached file). You can change the 15 to any number you like between 1 and 20 just so long as your choice does not conflict with the number for any other syntax highlighting definition already in the wordfile.

    Just a warning. The supplied syntax works exceptionally well (IMHO) but it is far from perfect. Some syntax highlighting features in A5 are just not supported in 3rd party offerings. I use UltraEdit as an external text editor a lot to augment the A5 Xbasic editor. It has many features (e.g. code folding, split windows and reliable scrolling just to mention a few) not supported by the A5 Xbasic editor. If you write a lot of Xbasic code and you use UltraEdit v 11 then this may be helpful. It certainly beats looking at black text on a white background all day.

    To enable the syntax highlighting, copy the supplied syntax and append it to your UltraEdit wordfile.txt file as described above. Then close and reopen UltraEdit (it reads the wordfile automatically at start up). Then all you need do is save your Xbasic syntax in UltraEdit with the extension .axb and the syntax highlighting will be automatically invoked. Alternatively just go the the View menu in UltraEdit, select the "View as" second menu item and then select "Alpha Five Xbasic" which will now be visible as an option if you have installed the supplied syntax correctly.

    I am sure there will be others keen to have a go at improving my syntax highlighting file. Please feel free to do so and let us see the result here.

  2. #2
    Member
    Real Name
    brett sinclair
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    858

    Default

    I have attached a sample of the Xbasic syntax highlighting available with the above word file for use with UltraEdit. Plenty of code wrapping examples here.

  3. #3
    Member
    Real Name
    brett sinclair
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    858

    Default

    Here is an update to my earlier syntax files for A5 Xbasic and use with UltraEdit from version 11. The attached zip file contains significant improvements to the previous version above, including:

    - 'wordfile.txt' syntax highlighting specs now highlight A5 function names correctly,

    - 'taglist.txt' Ctags file allows you to add functions to your Xbasic code just by double clicking on a function name in the UltraEdit CTags list box.

    I have attached a screen shot so you can see some of these features in action.

    This update includes A5 function names but not yet A5 methods as I don't know of a way I can quickly compile a list of all A5 methods.

    The two supplied text files can be copied into your UltraEdit program folder - but ensure you backup first the two files of the same name already there.

    You should refer to your UltraEdit documentation for installation and use of custom syntax highlighting and CTag files as the process is too lengthy to describe here.

  4. #4
    Member
    Real Name
    George Furnell
    Join Date
    Apr 2006
    Location
    South Africa
    Posts
    384

    Default Re: Syntax highlighting file for UltraEdit

    I cant wait to try this out. UltraEdit is a very feature rich and stable editor, whilst the xbasic editor and I are not friends yet.

    George

  5. #5
    Member
    Real Name
    brett sinclair
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    858

    Default Re: Syntax highlighting file for UltraEdit

    Here's an update to my syntax files for use with UltraEdit. The attached zip file is an Alpha5 application which can be run to automatically generate the WORDFILE.TXT and TAGLIST.TXT files used by UltraEdit.

    These text files allow XBasic code in UltraEdit to be shown with both code folding and syntax highlighting enabled once the 'View/ View as.../ Alpha5 Xbasic' menu is selected or the file is opened or saved with a file extension of .AXB (Alpha5 XBasic) provided that, in the latter case, the UltraEdit menu option 'Advanced/Configuration/File Types' has been set up (it only needs to be done once).

    The instructions to install the syntax files are as follows:

    1. Download and extract the supplied A5 application in the attached zip file to any convenient folder.

    2. Locate in that folder the file 'UltraEdit Syntax.adb' and double click on it to run the A5 application.

    3. Follow the instructions on the displayed dialog box.

    The two syntax files (as above) are placed in the 'working' directory immediately below one created in step 1. They now need to be copied to the either the UltraEdit program folder or another folder, depending on what version of UltraEdit you have. This link tells how to work out which folder it is:

    http://www.ultraedit.com/forums/view...php?f=9&t=5720

    The other thing that will need to be done if you have version 14 or later of UltraEdit is change the two file names to WORDFILE.UEW and TAGLIST.UET, respectively. The above link contains more information about this.

    For suggestions and improvements etc, just let me know.

    NOTES:
    ------
    (i) The supplied A5 application should work with any version of A5 from 6 up.

    (ii) The syntax files generated include all the language support and syntax distributed in the standard syntax templates with UltraEdit version 14.

    (iii) The Alpha Five syntax generated by the supplied A5 application will be specific to the version of Alpha Five that you are using - e.g. version 6, 7, 8 or 9... So if you subsequently upgrade to a later version of A5 you may want to run the 'UltraEdit Syntax.adb' application again and copy the resulting syntax files to the appropriate UltraEdit folder.

    (iv) If you have already made changes to your existing UltraEdit WORDFILE and TAGLIST files, you will need to re-apply these same changes to the new files generated here.

  6. #6
    Member
    Real Name
    George Furnell
    Join Date
    Apr 2006
    Location
    South Africa
    Posts
    384

    Default Re: Syntax highlighting file for UltraEdit

    Wow, thanks Brett.

    George

  7. #7
    Member
    Real Name
    brett sinclair
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    858

    Default Re: Syntax highlighting file for UltraEdit

    Attached is the latest upgrade to my Alpha5 syntax highlighting files for use with UltraEdit/UltraStudio. This is a very substantial update and improvement to the previous releases presented here. The attached zip file contains the following three files:

    WORDLIST.UEW
    TAGLIST.UET
    User guide in PDF format

    There is a full set of usage and installation instructions contained in the user guide. Please let me know suggestions, improvements etc.

  8. #8
    Member
    Real Name
    brett sinclair
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    858

    Default Re: Syntax highlighting file for UltraEdit

    Here is the latest update to my Alpha Five syntax files for use with UltraEdit/UltraStudio. The changes include update of function names for A5 version 9 together with a number of minor updates and corrections. The included documentation PDF has been revised and updated as well.

  9. #9
    Member
    Real Name
    George Furnell
    Join Date
    Apr 2006
    Location
    South Africa
    Posts
    384

    Default Re: Syntax highlighting file for UltraEdit

    Thanks Brett

  10. #10
    Member
    Real Name
    brett sinclair
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    858

    Default Re: Syntax highlighting file for UltraEdit

    Attached is the latest upgrade, version 2, to my Alpha5 syntax highlighting files for use with UltraEdit/ UltraStudio. Changes and improvements:

    · “Exit While” syntax now works correctly (code folding and indentation)
    · more function and method names added to the A5 tags
    · several miscellaneous tweaks and improvements
    · interface with PGPre pre-compiler (separately available on the Alpha5 Code Archive Forum, coming soon) to allow / UltraStudio to compile and run Alpha5 Xbasic code.

  11. #11
    Member
    Real Name
    George Furnell
    Join Date
    Apr 2006
    Location
    South Africa
    Posts
    384

    Default Re: Syntax highlighting file for UltraEdit

    Brett, tell us more about the PGP?

    Kind regards
    George

  12. #12
    Member
    Real Name
    brett sinclair
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    858

    Default Re: Syntax highlighting file for UltraEdit

    Basically its a pre-processor and compiler for Alpha5 that allows practically any 3rd party text editor or developer environment to interface with Alpha5 to compile and optionally run Xbasic global scripts and functions. At the moment I have it successfully running with UltraEdit/ UltraStudio and Notepad++.

    I imagine PGPre will particularly appeal to developers coming to Alpha5 from other products - they can continue to work in the development environment they are accustomed to and don't need to sacrifice features such as code folding and split windows when working on their code. But anyone who just likes a fully featured development environment to work in will enjoy PGPre too.

    I have just finished writing the documentation - it's available for download as a PDF file from here. The software is maybe a few days off. I'm on a roll. ;)

  13. #13
    Member
    Real Name
    George Furnell
    Join Date
    Apr 2006
    Location
    South Africa
    Posts
    384

    Default Re: Syntax highlighting file for UltraEdit

    Any news on PGP Brett.

    Regards
    George

  14. #14
    Member
    Real Name
    brett sinclair
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    858

    Default Re: Syntax highlighting file for UltraEdit

    Here is an update to my Alpha5 syntax files for use with UltraEdit that cure a problem with code folding and the "Exit For" statement.

    The attached zip file includes full copies of the WORDFILE.EUW, TAGLIST.UET and documentation PDF files. These files replace those previously issued. Installation instructions for both new and existing users are contained in the documentation.

Similar Threads

  1. nav bar highlighting wrong buttons
    By Steve Wood in forum Web Application Server v7
    Replies: 7
    Last Post: 01-27-2006, 09:36 AM
  2. Syntax help
    By Mark Williams in forum Alpha Five Version 7
    Replies: 6
    Last Post: 12-16-2005, 12:38 PM
  3. syntax
    By Trixie dela Cena in forum Alpha Five Version 5
    Replies: 17
    Last Post: 04-16-2004, 07:02 AM
  4. remove file syntax troubles
    By John Cunradi in forum Alpha Five Version 5
    Replies: 4
    Last Post: 12-04-2003, 01:18 PM
  5. Syntax help
    By russ Boehle in forum Alpha Five Version 5
    Replies: 2
    Last Post: 08-20-2003, 08:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •