Author Topic: Notepad++ for LISP heads  (Read 8707 times)

0 Members and 1 Guest are viewing this topic.

MP

  • Seagull
  • Posts: 16257
  • Warning: I may be trolling.
Notepad++ for LISP heads
« on: November 29, 2011, 06:06:30 pm »
Even tho I'm a die hard Textpad / UltraEdit user I had to use NotePad++ today so I quickly bashed out a syntax file for my use.

It produces this kind of highlighting:



Key points: I don't need to differentiate between all the different language elements, i.e. coloring vanilla lisp different than activex yada. What I do want to see is where my functions are defined and called, literals (numbers, strings and single quoted terms etc.) and comments. To that end it serves my needs. Maybe it will help you define your own scheme, and accordingly, is supplied for your abuse. Cheers.
\|// Set goal. Experiment tirelessly until
|oo| practice has become expertise.  Loop.
|- | Dropbox | O'Reilly School | UltraEdit

Lee Mac

  • Needs a day job
  • Posts: 9973
  • AutoCAD 2015 Windows 7 London, England
Re: Notepad++ for LISP heads
« Reply #1 on: November 29, 2011, 06:18:17 pm »
Thanks for sharing your efforts MP  :-)

I considered creating an AutoLISP language file for Notepad++, but abandoned it since I primarily use VLIDE for LISP and Notepad++ for everything else.

Lee

MP

  • Seagull
  • Posts: 16257
  • Warning: I may be trolling.
Re: Notepad++ for LISP heads
« Reply #2 on: November 29, 2011, 06:33:24 pm »
My pleasure; thanks for the nod Lee.

An aside, I never use vlide: I hate that ugly thing so much I wrote my own symbol, object and dcl browsers / viewers yada so I'd have no want or reason to use it.

:-D
\|// Set goal. Experiment tirelessly until
|oo| practice has become expertise.  Loop.
|- | Dropbox | O'Reilly School | UltraEdit

Lee Mac

  • Needs a day job
  • Posts: 9973
  • AutoCAD 2015 Windows 7 London, England
Re: Notepad++ for LISP heads
« Reply #3 on: November 29, 2011, 06:34:04 pm »
My pleasure; thanks for the nod Lee.

An aside, I never use vlide: I hate that ugly thing so much I wrote my own symbol, object and dcl browsers / viewers yada so I'd have no want or reason to use it.

:-D

I find it quick for testing since unsaved code can be loaded directly from the editor, admittedly I don't use the Inspect/Apropos/SymbolService etc functionalities but sometimes find "Debug > Last Break Source" handy.

MP

  • Seagull
  • Posts: 16257
  • Warning: I may be trolling.
Re: Notepad++ for LISP heads
« Reply #4 on: November 29, 2011, 06:37:31 pm »
Acknowledge. :)
\|// Set goal. Experiment tirelessly until
|oo| practice has become expertise.  Loop.
|- | Dropbox | O'Reilly School | UltraEdit

VovKa

  • Swamp Rat
  • Posts: 510
Re: Notepad++ for LISP heads
« Reply #5 on: November 29, 2011, 06:46:11 pm »
An aside, I never use vlide: I hate that ugly thing so much I wrote my own symbol, object and dcl browsers / viewers yada so I'd have no want or reason to use it.
i think vlide is cool
it suits 99% of my needs
1% is for some sort of function browser to navigate through big files

BlackBox

  • Gator
  • Posts: 2853
Re: Notepad++ for LISP heads
« Reply #6 on: November 29, 2011, 06:54:52 pm »
Thanks for sharing your efforts MP  :-)

I considered creating an AutoLISP language file for Notepad++, but abandoned it since I primarily use VLIDE for LISP and Notepad++ for everything else.

Lee

1+

I use VLIDE for LISP, and Notepad++ for .BAT, etc. haven't found the time / need to customize the latter (yet).

** Edit, I also use Visual Studio 2010 Express for all .NET, even though Notepad++ supports C#/VB

Thanks for sharing, MP! :beer:
« Last Edit: November 30, 2011, 06:42:51 am by RenderMan »
"Potential has a shelf life." - Margaret Atwood

John Kaul (Se7en)

  • Administrator
  • Needs a day job
  • Posts: 7321
Re: Notepad++ for LISP heads
« Reply #7 on: November 29, 2011, 09:21:58 pm »
I scanned the syntax file and I was wondering how the list of functions can be so short?
“Common sense is not so common.” ~Voltaire

--> Donate to TheSwamp.org <--

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 10704
  • class keyThumper<T>:ILazy<T>
Re: Notepad++ for LISP heads
« Reply #8 on: November 29, 2011, 09:35:53 pm »
I scanned the syntax file and I was wondering how the list of functions can be so short?

This handles most of them John

<Keywords name="Words3">vl acad dos_ dcl_
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate<--

John Kaul (Se7en)

  • Administrator
  • Needs a day job
  • Posts: 7321
Re: Notepad++ for LISP heads
« Reply #9 on: November 29, 2011, 09:47:05 pm »
I scanned the syntax file and I was wondering how the list of functions can be so short?
This handles most of them John

<Keywords name="Words3">vl acad dos_ dcl_

Ah, got it; like a wild-card kinda thing(vl* acad*...) cool. Thanks.

*** ALMOST EDIT
A thought just crossed my mind and I'm just tossing this out there, but what about spelling errors? After I posted the question above I grabbed most (I think I got 'em all but I went quickly and could have messed it up and missed a bunch or something) of the Auto/Visual & DCL functions from my syntax file and did a count; I got 1675 functions. If those would be of any use...
“Common sense is not so common.” ~Voltaire

--> Donate to TheSwamp.org <--

MP

  • Seagull
  • Posts: 16257
  • Warning: I may be trolling.
Re: Notepad++ for LISP heads
« Reply #10 on: November 29, 2011, 10:29:30 pm »
what about spelling errors?

I don't make spellink errors.

... I got 1675 functions. If those would be of any use ...

Thanks for the offer John but I'll pass. The full list, if you include all properties, methods, vanilla, activex, acet, ai, 3rd party libs, like opendcl, doslib yada actually numbers over 6200 entries. Rather than bog Notepad++ down with an all inclusive, exhaustive list I opted for lean and mean -- but functional. I use the thing infrequently, so I could be bothered to put more effort into it than what I've shared in this thread, acknowledging mileages vary and to each their own. My Textpad and Ultra Edit setups are entirely different beasts in this regard tho.

i think vlide is cool
it suits 99% of my needs
1% is for some sort of function browser to navigate through big files

I am so pleased to hear 99% of your needs are being met -- so few can say that. :)

Thanks for sharing, MP! :beer:

*clink* cheers!  8-)
\|// Set goal. Experiment tirelessly until
|oo| practice has become expertise.  Loop.
|- | Dropbox | O'Reilly School | UltraEdit

John Kaul (Se7en)

  • Administrator
  • Needs a day job
  • Posts: 7321
Re: Notepad++ for LISP heads
« Reply #11 on: November 29, 2011, 10:44:37 pm »
wow!? I went quick but I don't think I could have missed that many. *smile*

Side-bar: I don't think the 3rd party stuff would be very useful for me but I would be interested in those `methods and properties' if you got 'em handy. I'm pretty sure I don't have those in my syntax file. ...that is, if you would be willing to give 'em up (I understand if you don't want to though).
“Common sense is not so common.” ~Voltaire

--> Donate to TheSwamp.org <--

MP

  • Seagull
  • Posts: 16257
  • Warning: I may be trolling.
Re: Notepad++ for LISP heads
« Reply #12 on: November 29, 2011, 11:04:12 pm »
if you would be willing to give 'em up (I understand if you don't want to though).

I feel no need to keep it to myself, so attached. I spent maybe 5 minutes on it. It's just an edited atoms-family dump under AutoCAD 2012. Between the hasty effort (is not organized; spartanly commented) and being bleary eyed (lack of sleep due to the ephing wind we've been enjoying lately, lol, hurricane speed winds in Calgary, who knew) do not consider it to be gospel. However, it's probably 99% there, given that 1% gives me wiggle room of about ~60 items.
\|// Set goal. Experiment tirelessly until
|oo| practice has become expertise.  Loop.
|- | Dropbox | O'Reilly School | UltraEdit

ElpanovEvgeniy

  • Swamp Rat
  • Posts: 1468
  • Moscow (Russia)
Re: Notepad++ for LISP heads
« Reply #13 on: November 30, 2011, 02:27:46 am »
Thank you!
I took your file as a sample and redid for my taste.
My argument has always been that we need to learn how to ask questions as much as we need to learn to solve problems. /Kerry Brown/

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 10704
  • class keyThumper<T>:ILazy<T>
Re: Notepad++ for LISP heads
« Reply #14 on: November 30, 2011, 04:38:51 am »
Meant to say thanks Michael. I know a few people who will be pleased to see your support file.

I use NotePad++ a couple of times a week so I'll get some use of your syntax colouring  as well.

Regards,


and thanks to Evgeniy too !!

« Last Edit: November 30, 2011, 04:47:24 am by Kerry »
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate<--