Author Topic: Best editor for LISP?  (Read 16843 times)

0 Members and 1 Guest are viewing this topic.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Best editor for LISP?
« Reply #45 on: July 02, 2010, 03:37:51 AM »

I'm quite happy too.

... so I don't even read John's Vim posts   :evil:
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: Best editor for LISP?
« Reply #46 on: July 02, 2010, 07:21:34 AM »

I'm quite happy too.

... so I don't even read John's Vim posts   :evil:

 :lmao:
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright 2016

CAB

  • Global Moderator
  • Seagull
  • Posts: 10395
Re: Best editor for LISP?
« Reply #47 on: July 02, 2010, 08:09:35 AM »
That's too funny.
What a way to wake up. :-)
I've reached the age where the happy hour is a nap. ()
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

hermanm

  • Bull Frog
  • Posts: 282
Re: Best editor for LISP?
« Reply #48 on: July 02, 2010, 11:24:22 AM »
Quote
With .Net you no longer really need VisVim, since .Net studio has support for
external editors.  Follow these directions:

Wow! I didn't know that.

Thanks, John.:)
If you don't know where you are going, you might not get there.
  - L.P. Berra

John Kaul (Se7en)

  • Administrator
  • Needs a day job
  • Posts: 9718
Re: Best editor for LISP?
« Reply #49 on: July 02, 2010, 12:25:46 PM »
@ hermanm
No problem. It was no trouble at all.

@ everyone besides hermanm (whom actually seems to appreciate the genius that is i)
[Joe Pesci voice] Funny how? I amuse you? Like i'm a clown, i amuse you? [/Joe Pesci voice]

:D
:P
TheSwamp.org (serving the CAD community since 2003)

Donate to TheSwamp.org

kenkrupa

  • Newt
  • Posts: 78
Re: Best editor for LISP?
« Reply #50 on: July 02, 2010, 03:36:34 PM »


For the OP :
Just noticed that you seem to be geting a better response here than the other places you posted this.  :wink:

Yep - I'm seeing that just now, and I'm overwhelmed! (Well, almost).  TheSwamp is the place!

Notepad++ was looking real good, but when you mentioned UltraEdit I just tried that, and it looks like the winner. I saw that it has a "wordfile" for AutoLISP already available. That alone is worth the $60. And it looks like it does everything I need as well or better than Notepad++ or anything else I've seen. I believe my search is over. Thanks very much Kerry (and to everyone else that contributed to the discussion).
« Last Edit: July 02, 2010, 03:44:44 PM by kenkrupa »

CAB

  • Global Moderator
  • Seagull
  • Posts: 10395
Re: Best editor for LISP?
« Reply #51 on: July 02, 2010, 04:07:02 PM »
I've reached the age where the happy hour is a nap. ()
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10395
Re: Best editor for LISP?
« Reply #52 on: July 02, 2010, 04:09:14 PM »
This is the one I use:

Note that the L14 and L15 are all you are interested in.
Here is the first line

Code: [Select]
/L14"AutoLISP" Block Comment On = ;| Block Comment Off = |; Line Comment Num = 2;  Line Comment Preceding Chars = [~|]
I've reached the age where the happy hour is a nap. ()
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

kenkrupa

  • Newt
  • Posts: 78
Re: Best editor for LISP?
« Reply #53 on: July 10, 2010, 05:04:05 PM »
Thanks for that wordfile CAB - it's better than the one I found on the UE site.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10395
Re: Best editor for LISP?
« Reply #54 on: July 10, 2010, 05:38:38 PM »
Glad you can make use of it. Most is mine but some came from Michael's file.
I'll point you to his if I can find the link.


Still have a problem with comments ; if there is no space following. The color is not correct
but if you change things it screw something else up.  I have learned to live with it.
I've reached the age where the happy hour is a nap. ()
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

kenkrupa

  • Newt
  • Posts: 78
Re: Best editor for LISP?
« Reply #55 on: July 10, 2010, 05:49:00 PM »
Comments seem fine for me. I noticed that you had:
/Line Comment Alt = ;;
...so I changed it to:
/Line Comment Alt = ;

I did that right away, mostly because I usually use just on ";", but maybe that fixed the problem you are having also.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10395
Re: Best editor for LISP?
« Reply #56 on: July 10, 2010, 07:40:27 PM »
When you do that it doesn't recognize ;| as a block comment.  :-(
I've reached the age where the happy hour is a nap. ()
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Best editor for LISP?
« Reply #57 on: July 10, 2010, 11:47:56 PM »
Alan, Ken ,

I use the Studio Version ie UltraStudio ( have a lifetime license)

The wordfiles are seperate file for each language which is a little easier to handle.

This is the header for my AutoLisp.uew
Code: [Select]
/L20"AutoLISP" Block Comment On = ;| Block Comment Off = |;
/ Line Comment Num = 2;  Line Comment Preceding Chars = [~|]
/Line Comment Alt = ;; Escape Char = \ String Chars = " Nocase File Extensions = LSP MNL
/Colors = 0,8421376,8421376,8421504,255,
/Colors Back = 16777215,16777215,16777215,16777215,16777215,
/Colors Auto Back = 1,1,1,1,1,
/Font Style = 0,0,0,0,0,
/Delimiters =  ~!@%^&()|{}[]" , .?
/Indent Strings = "("
/Unindent Strings = ")"
/Open Brace Strings = "{" "(" "["
/Close Brace Strings = "}" ")" "]"
/Function String = "(defun "

/C7 ( - personal) Colors = 4210816 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
** dcl_ kdub: 'kdub: local:

/C8 ( - personal) Colors = 128 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
** c:KDUB_ KDUB_ kglobal

< .... snipped .... >

note that I have my brace matching color as RED not the grey default :)

This is the result
« Last Edit: July 11, 2010, 03:21:49 AM by Kerry Brown »
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

kenkrupa

  • Newt
  • Posts: 78
Re: Best editor for LISP?
« Reply #58 on: July 11, 2010, 10:09:57 AM »
When you do that it doesn't recognize ;| as a block comment.  :-(

Hi CAB,

I don't have a problem with that because I never use them. I'm just used to seeing the whole range of lines with the ; in front of each. Easy to do by selecting them and using the comment shortcut (I'm set up to use Ctrl-; to apply, and Alt-; to remove). I will often have a previously commented section inside of a newly commented section - that shows up clearly as ;; instead of a single. I can then uncomment the latest range and still have the previous section commented just as it was before doing the later comment. It's also easier to see if you (or someone else) looks at it in Notepad, or posted in a forum, where you don't have the syntax coloring to make it obvious. So, all things considered, I never found any advantage to using the block comment method.

kenkrupa

  • Newt
  • Posts: 78
Re: Best editor for LISP?
« Reply #59 on: July 11, 2010, 11:28:04 AM »
The wordfiles are seperate file for each language which is a little easier to handle.

This is the header for my AutoLisp.uew
Code: [Select]
/L20"AutoLISP" Block Comment On = ;| Block Comment Off = |;
/ Line Comment Num = 2;  Line Comment Preceding Chars = [~|]
/Line Comment Alt = ;; Escape Char = \ String Chars = " Nocase File Extensions = LSP MNL
/Colors = 0,8421376,8421376,8421504,255,
/Colors Back = 16777215,16777215,16777215,16777215,16777215,
/Colors Auto Back = 1,1,1,1,1,
/Font Style = 0,0,0,0,0,
/Delimiters =  ~!@%^&()|{}[]" , .?
/Indent Strings = "("
/Unindent Strings = ")"
/Open Brace Strings = "{" "(" "["
/Close Brace Strings = "}" ")" "]"
/Function String = "(defun "

Hi Kerry (and CAB),

I also thought it made sense to have separate files, so I extracted L14 and L15 from CAB's file before modifying. There's a whole lot of stuff in there that I have no clue about, but got it to provide desired results. One difference I see in CAB's is this:
/Function String 1 = "%[^t (]++defun[^t ]+^([a-zA-Z0-9^[^]^~:`@#^$^%^^&^*-=_^+<>{}',./^?^\|]++^)"
I found that the simple "(defun " string picks up commented out functions for the function list, and does so pretty sloppily, like this:
;(defun c:k()(load "j:\\aa-a2010\\cbt-2010\\source\\cbt_plot")(c:cbt_bplot))
With all the gobbledygook in CAB's version I get an nice clean listing, without any commented out functions (as desired).

Also, I don;t know what / Line Comment Num = 2; does. It's still in mine, and I don't know if it's doing anything or not - as far as I can tell it's not having any effect.

Mine has
/Ignore String SOL ";"
(from CAB's file). I'm guessing SOL is Start Of Line, but don't know what it's supposed to be doing, or whether it's having any effect on my setup.

I added this to mine:
/Open Fold Strings = "("
/Close Fold Strings = ")"
Not sure if I'll keep it - might be useful. (Having that function list - something I did not have in Codewright - might eliminate the need for this. I'll work with it for a while.)

After using the same keystrokes and all for nearly 20 years, I'm very happy to find UE and be able to pretty much match what my fingers do automatically. I can just think about what I'm programming, and don't have to think about how to get that thinking onto the screen. It's like if you play a piano, you wouldn't want to move to some alien piano that has the keys laid out altogether different. So I appreciate that you guys are helping me get this into shape.

Finally, you showed my yours so I'll show you mine. I'm not big on a lot of different colors - this is to my liking as shown. I like the parens in red - maybe 'cuz I'm just used to it that way.