Lee Mac Posted December 3, 2008 Posted December 3, 2008 Hi Guys, From your recommendations I have started to try to use the Visual LISP Editor in ACAD, and, I must say, it does make it easier to identify code with it's novel colour-coding. But, I am having a problem getting the code to line up correctly - i.e If I have code as follows: (defun c:fubar () (if (/= (setq pt1 (getpoint "\nSelect Point: ")) nil) [color=Red][b]([/b][/color]progn (command "_circle" pt1 "5") (princ "\nA Cirlcle has been drawn. ") [b][color=Red])[/color][/b] I would normally align the two highlighted brackets, to make the code clearer. But in VLIDE, I get I result as follows: (defun c:fubar () (if (/= (setq pt1 (getpoint "\nSelect Point: ")) nil) [color=Red][b]([/b][/color]progn (command "_circle" pt1 "5") (princ "\nA Cirlcle has been drawn. ") [b][color=Red])[/color][/b] And so, my question is: "Is there a shortcut to tab back to the previous indent?" (so that the brackets can be alligned easily.. ) Thanks in advance for any advice and help. PS. I have attached a jpg, if you still don't know what I'm going on about... Quote
lpseifert Posted December 3, 2008 Posted December 3, 2008 click here, it will format all your code. The button to the right will format a selection Quote
Lee Mac Posted December 3, 2008 Author Posted December 3, 2008 Thanks lpseifert, That button adds the necessary closing brackets to my code, but will add them without the correct indentation, as shown in attachment. Quote
Lee Mac Posted December 3, 2008 Author Posted December 3, 2008 Do these options look correct to you? Quote
lpseifert Posted December 3, 2008 Posted December 3, 2008 I copy/pasted the code you supplied into Vlide, clicked the format button and it worked for me... see image above. Try hitting Ctrl+Alt+F and see what happens. Quote
CmdrDuh Posted December 3, 2008 Posted December 3, 2008 I think your close paren choice is incorrect, I think it needs to be the 3rd choice, but Im not sure Quote
Lee Mac Posted December 3, 2008 Author Posted December 3, 2008 AHHHHH Found it Just changed the format option to "close at new line with outer indentation" And it worked just like you posted. Thanks once again for all your help lpseifert. Edit: CmdrDuh, your post appeared just as I posted this... you were spot on Quote
ASMI Posted December 3, 2008 Posted December 3, 2008 > Lee Mac Don't you know Double click before opening bracket or after closing bracket will to highlight expressions to oposite bracket. Quote
Lee Mac Posted December 3, 2008 Author Posted December 3, 2008 Thanks ASMI - I love your little animations Quote
Lee Mac Posted December 18, 2008 Author Posted December 18, 2008 > Lee Mac Don't you know Double click before opening bracket or after closing bracket will to highlight expressions to oposite bracket. ASMI -- not related to the problem, but how did you create that GIF? Quote
ASMI Posted December 18, 2008 Posted December 18, 2008 This is Camtasia Studio software to make screen movies with titles and sound, mostly *.avi and *.mpeg format, but animated *.gif also possible. Quote
Lee Mac Posted December 18, 2008 Author Posted December 18, 2008 This is Camtasia Studio software to make screen movies with titles and sound, mostly *.avi and *.mpeg format, but animated *.gif also possible. Is that available free off the net? Quote
ASMI Posted December 18, 2008 Posted December 18, 2008 Is that available free off the net? Free for $ 229 Quote
Lee Mac Posted December 18, 2008 Author Posted December 18, 2008 Free for $ 229 haha very "free" indeed. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.