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:
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.0 -
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?
0 -
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.0 -
i take it i should write a script instead of doing it by hand :-p
0 -
--
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.
- First install gedit plugins
sudo apt-get install gedit-plugins
- 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
- If you havn't already done so, install my AutoLisp Highlighter from http://www.mediafire.com/?a3q91ox55ff0gwj
- Restart Gedit and in the bottom taskbar pick "autolisp" instead of "plain text" if it is not already set
- Download my snippets collection http://www.mediafire.com/?k845svs32syr8m5
- Proceed to tools>manage snippets, pick the open option, and locate the archive that you just downloaded
- 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.
0 - First install gedit plugins
-
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
0 -
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
0 -
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
0