uddfl Posted February 18, 2009 Share Posted February 18, 2009 Check out the fancy LISP code formatting at autolisp.com.br (great source for LISP knowledge). It matches the VLIDE code formatting and colors! http://www.autolisp.com.br/autolisp/modules.php?name=Forums&file=viewtopic&t=2721 Would it be remotely possible to incorporate something like that at CADTutor? Quote Link to comment Share on other sites More sharing options...
Strix Posted February 19, 2009 Share Posted February 19, 2009 is there a benefit to doing it that way? *takes migrane for a lie-down* :wink: Quote Link to comment Share on other sites More sharing options...
azzro10 Posted February 19, 2009 Share Posted February 19, 2009 yeh i think im missing something, doesnt really help much Quote Link to comment Share on other sites More sharing options...
uddfl Posted February 19, 2009 Author Share Posted February 19, 2009 Jeez, sorry I brought it up Quote Link to comment Share on other sites More sharing options...
uddfl Posted February 19, 2009 Author Share Posted February 19, 2009 Look, even the Vietnamese have it! (found while searching for someting else): http://www.cadviet.com/forum/index.php?showtopic=1793 Quote Link to comment Share on other sites More sharing options...
CmdrDuh Posted February 19, 2009 Share Posted February 19, 2009 Speaking neither vietnamese or whatever the first page was, the first question I would have is what software were those 2 forums using? We have vBulletin here, which may not have that functionality. Quote Link to comment Share on other sites More sharing options...
uddfl Posted February 19, 2009 Author Share Posted February 19, 2009 Speaking neither vietnamese or whatever the first page was, the first question I would have is what software were those 2 forums using? We have vBulletin here, which may not have that functionality.That's basically what I'm wondering. Edit: The first one is in Portuguese, a Brazilian site that's been around a long time. Quote Link to comment Share on other sites More sharing options...
uddfl Posted February 24, 2009 Author Share Posted February 24, 2009 China forum! - why am I not surprised here? http://q.sohu.com/forum/5/topic/3579601 Quote Link to comment Share on other sites More sharing options...
fuccaro Posted February 25, 2009 Share Posted February 25, 2009 There is a program to convert Lisp to Html. These days the program is updated to handle Visual Lisp files too. See here: http://www.afralisp.net/lisp/lsp2htlm.htm Quote Link to comment Share on other sites More sharing options...
CADTutor Posted February 25, 2009 Share Posted February 25, 2009 And here's another: http://lsp2html.sourceforge.net/ Quote Link to comment Share on other sites More sharing options...
chelsea1307 Posted March 3, 2009 Share Posted March 3, 2009 Ive seen on some sites (dont remember which ones now though) theres an option at the bottom of a code section to be able to download directly, I know copying and pasting from the page really isnt hard, but people have had problems with copying and missing an ( or ) accidentally. dont know if it is avaliable on vbulitien but it would be nice if it was Quote Link to comment Share on other sites More sharing options...
fuccaro Posted March 3, 2009 Share Posted March 3, 2009 It's up to the poster to upload a LSP or a ZIP file for the reader's convenience. Quote Link to comment Share on other sites More sharing options...
David Bethel Posted March 3, 2009 Share Posted March 3, 2009 Just to clarify a bit, the code here is BBC. I can automate LSP to BBC but the files get quite large quickly. Correct me if I'm wrong, but there is a 10KB limit in [ code] [ /code] brackets. I prefer some of the older style color coding where nesting is by various colors, not the vlide simply red scheme In plain code 307 bytes (setq ss (ssget "X" (list (cons 0 "INSERT") (cons 2 block_name) (cons 66 1) (if (getvar "CTAB") (cons 410 (getvar "CTAB")) (cons 67 (- 1 (getvar "TILEMODE"))))))) In Color 1,169 Bytes [b][color=BLACK]([/color][/b]setq ss [b][color=FUCHSIA]([/color][/b]ssget [color=#2f4f4f]"X"[/color] [b][color=NAVY]([/color][/b]list [b][color=MAROON]([/color][/b]cons 0 [color=#2f4f4f]"INSERT"[/color][b][color=MAROON])[/color][/b] [b][color=MAROON]([/color][/b]cons 2 block_name[b][color=MAROON])[/color][/b] [b][color=MAROON]([/color][/b]cons 66 1[b][color=MAROON])[/color][/b] [b][color=MAROON]([/color][/b]if [b][color=GREEN]([/color][/b]getvar [color=#2f4f4f]"CTAB"[/color][b][color=GREEN])[/color][/b] [b][color=GREEN]([/color][/b]cons 410 [b][color=BLUE]([/color][/b]getvar [color=#2f4f4f]"CTAB"[/color][b][color=BLUE])[/color][/b][b][color=GREEN])[/color][/b] [b][color=GREEN]([/color][/b]cons 67 [b][color=BLUE]([/color][/b]- 1 [b][color=RED]([/color][/b]getvar [color=#2f4f4f]"TILEMODE"[/color][b][color=RED])[/color][/b][b][color=BLUE])[/color][/b][b][color=GREEN])[/color][/b][b][color=MAROON])[/color][/b][b][color=NAVY])[/color][/b][b][color=FUCHSIA])[/color][/b][b][color=BLACK])[/color][/b] What it looks like in ASCII With an extra space after each [ [ b][ color=BLACK]([ /color][ /b]setq ss [ b][ color=FUCHSIA]([ /color][ /b]ssget [ color=#2f4f4f]"X"[ /color] [ b][ color=NAVY]([ /color][ /b]list [ b][ color=MAROON]([ /color][ /b]cons 0 [ color=#2f4f4f]"INSERT"[ /color][ b][ color=MAROON])[ /color][ /b] [ b][ color=MAROON]([ /color][ /b]cons 2 block_name[ b][ color=MAROON])[ /color][ /b] [ b][ color=MAROON]([ /color][ /b]cons 66 1[ b][ color=MAROON])[ /color][ /b] [ b][ color=MAROON]([ /color][ /b]if [ b][ color=GREEN]([ /color][ /b]getvar [ color=#2f4f4f]"CTAB"[ /color][ b][ color=GREEN])[ /color][ /b] [ b][ color=GREEN]([ /color][ /b]cons 410 [ b][ color=BLUE]([ /color][ /b]getvar [ color=#2f4f4f]"CTAB"[ /color][ b][ color=BLUE])[ /color][ /b][ b][ color=GREEN])[ /color][ /b] [ b][ color=GREEN]([ /color][ /b]cons 67 [ b][ color=BLUE]([ /color][ /b]- 1 [ b][ color=RED]([ /color][ /b]getvar [ color=#2f4f4f]"TILEMODE"[ /color][ b][ color=RED])[ /color][ /b][ b][ color=BLUE])[ /color][ /b][ b][ color=GREEN])[ /color][ /b][ b][ color=MAROON])[ /color][ /b][ b])[ /color][ /b][ b])[ /color][ /b][ b])[ /color][ /b] -David Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 4, 2009 Share Posted March 4, 2009 It is far easier to read though David. Quote Link to comment Share on other sites More sharing options...
David Bethel Posted March 4, 2009 Share Posted March 4, 2009 Lee, It is a fairly simple program. The program itself does not format well between the [ code] [ /code] tags. -David LSP2BBC.LSP Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 4, 2009 Share Posted March 4, 2009 Many thanks for posting that LISP - very generous of you David. I shall look into posting my codes in colour from now on Thanks Lee Quote Link to comment Share on other sites More sharing options...
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.