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

0 Members and 1 Guest are viewing this topic.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
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.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Lee Mac

  • Seagull
  • Posts: 12905
  • 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: 17750
  • Have thousands of dwgs to process? Contact me.
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
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Lee Mac

  • Seagull
  • Posts: 12905
  • 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: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Notepad++ for LISP heads
« Reply #4 on: November 29, 2011, 06:37:31 PM »
Acknowledge. :)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

VovKa

  • Water Moccasin
  • Posts: 1626
  • Ukraine
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

  • King Gator
  • Posts: 3770
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 »
"How we think determines what we do, and what we do determines what we get."

JohnK

  • Administrator
  • Seagull
  • Posts: 10603
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?
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • 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_
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

JohnK

  • Administrator
  • Seagull
  • Posts: 10603
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...
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
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-)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

JohnK

  • Administrator
  • Seagull
  • Posts: 10603
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).
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
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.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

ElpanovEvgeniy

  • Water Moccasin
  • Posts: 1569
  • 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.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • 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 »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.