AutoLisp Highlighting

I spent about a half hour making this so I figured I'd help out anyone else doing AutoLisp programming on linux

http://www.mediafire.com/?a3q91ox55ff0gwj

Download that and run the included .sh file to install AutoLisp highlighting for gedit. Screenshot here:

http://s617.photobucket.com/albums/tt254/drdanielfc/CenCad%20Pictures/?action=view&current=AutoLisp.png

Comments

  • If it might help, I can send you my "AutoLISP language definition" file that I made for UltraEdit -
    it contains all Lisp functiuons incl. VL/VLA/VLAX/VLR.
    Please leave a note here with your email address so I can send it to you, to extract for gedit.

  • That would actually be nice I currently include all the functions from http://webcache.googleusercontent.com/search?q=cache:o-l84I2MdawJ:www.jadp.co.uk/downloads/Lisplist.pdf+autolisp+function+list&hl=en&gl=us

    My email is: dcentore@optonline.net

    I'm debating whether or not to write my own AutoLisp IDE for Linux. It wouldn't be anything that could run the code but perhaps a basic "Find Function Declaration" "Rename" etc?

     

  • Those functions listed on mediafire are only the standard Lisp+DCL fucntions from AutoLISP R12 :-)
    The file I'm sending you does contain *any* VL/VLA/VLAX/VLR function - those are > 1500.

  • i take it i should write a script instead of doing it by hand :-p

  • --

    Ok a little update since last time. As for the highlighter, it seems that gedit cannot handle over a certain number of keywords so I will not be including any of the v* keywords as requested by torsten. I will look for a workaround but that is not currently high priority b/c i dont use them myself.

     

    Now, as for using gedit as an AutoLisp ide here is my current setup procedure. Modify it as you wish.

    1. First install gedit plugins
      sudo apt-get install gedit-plugins
    2. Edit>Preferences>Plugins and enable the following:
      -Bracket Completion
      -Code Comment (use ctrl+m and ctrl+shift+m for this)
      -File Browser pane (F9 i like to filter with *.lsp)
      -Session Saver (in File)
      -Snippets
    3. If you havn't already done so, install my AutoLisp Highlighter from http://www.mediafire.com/?a3q91ox55ff0gwj
    4. Restart Gedit and in the bottom taskbar pick "autolisp" instead of "plain text" if it is not already set
    5. Download my snippets collection http://www.mediafire.com/?k845svs32syr8m5
    6. Proceed to tools>manage snippets, pick the open option, and locate the archive that you just downloaded
    7. Gedit is ready for you :-)

     

    As for the usage of snippets, use any of the standard autolisp commands and press tab to have it auto-complete them. In the case of commands containing a dash ("-") the type it without the dash it will be filled in for you. The /=, <=, >=, <, > commands are not included due to limitations of snippets. Additional snippets are:

    • elseif
    • ifequal
    • ifnotequal
    • (ctrl+e) after having typed a function name to excecute

    Please note that the snippets are highly untested and you use them at your own risk. Please post any bugs you find here so I can quickly fix them. Also note that the snippets are customized for MY style of programming, for example all defuns begin with (begincommand) and (endcommand) which set up undos among other steps, which you may wish to remove via the settings manager. Also, any commands that I normally don't call may have reminders prefixed with "jb: ". You can ignore these or remove them.

  • Snippets v0.2

    Updates: Several fixed commands

    Added setchange (in favor of reverse, which has been removed)

    Added whilenot

     

    Download: http://www.mediafire.com/?pqhybnhcq9437e9

     

  • Hello Dear

    Please let me know if its possible the conversion of a routine vlx, used in autocad, into a bricscad linux.This very important to me, and maybe this is what still keep me working on autocad, cause its something that helps me a lot.Maybe I am saying somehting silly when ask for the "convertion" instead of creating a new one, bua I dont understand about LISP commands and I am only a CAD user.Hope to hear something from you!

     

    thanks

     

    Nivande Machado

  • Nivande,

    I would like to speak to you about your routine via email. Its listed above, but to save you a click here you go: dcentore@optonline.net

This discussion has been closed.