TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: MP on November 29, 2011, 06:06:30 PM

Title: Notepad++ for LISP heads
Post by: MP 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:

(http://i41.tinypic.com/w2loio.jpg)

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.
Title: Re: Notepad++ for LISP heads
Post by: Lee Mac 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
Title: Re: Notepad++ for LISP heads
Post by: MP 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
Title: Re: Notepad++ for LISP heads
Post by: Lee Mac 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.
Title: Re: Notepad++ for LISP heads
Post by: MP on November 29, 2011, 06:37:31 PM
Acknowledge. :)
Title: Re: Notepad++ for LISP heads
Post by: VovKa 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
Title: Re: Notepad++ for LISP heads
Post by: BlackBox 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:
Title: Re: Notepad++ for LISP heads
Post by: JohnK 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?
Title: Re: Notepad++ for LISP heads
Post by: Kerry 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_
Title: Re: Notepad++ for LISP heads
Post by: JohnK 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...
Title: Re: Notepad++ for LISP heads
Post by: MP on November 29, 2011, 10:29:30 PM
what about spelling errors?

I don't make spellink errors. (http://www.theswamp.org/screens/mp/oh.gif)

... 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-)
Title: Re: Notepad++ for LISP heads
Post by: JohnK 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).
Title: Re: Notepad++ for LISP heads
Post by: MP 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.
Title: Re: Notepad++ for LISP heads
Post by: ElpanovEvgeniy on November 30, 2011, 02:27:46 AM
Thank you!
I took your file as a sample and redid for my taste.
Title: Re: Notepad++ for LISP heads
Post by: Kerry 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 !!

Title: Re: Notepad++ for LISP heads
Post by: ElpanovEvgeniy on November 30, 2011, 06:07:27 AM
I use NotePad++ to display the code without opening AutoCAD.
This allows you to very quickly see the code...
Title: Re: Notepad++ for LISP heads
Post by: Chris on November 30, 2011, 08:29:48 AM
now for the noob question,  I use notepad++ quite often, and everytime I setup a new machine, I have to manually input all my coding colors.  How do I actually import this file?  I tried doing the import style theme, but I dont think thats quite the right way to do it. (IOW it didnt work)
Title: Re: Notepad++ for LISP heads
Post by: ElpanovEvgeniy on November 30, 2011, 08:51:44 AM
now for the noob question,  I use notepad++ quite often, and everytime I setup a new machine, I have to manually input all my coding colors.  How do I actually import this file?  I tried doing the import style theme, but I dont think thats quite the right way to do it. (IOW it didnt work)

For me, the most convenient way to use a portable version notepad++

How do I add a new language:
Title: Re: Notepad++ for LISP heads
Post by: MP on November 30, 2011, 09:03:20 AM
For me, the most convenient way to use a portable version notepad++

That's exactly how I use it Evgeniv, portable (http://portableapps.com/apps/development/notepadpp_portable) + import, tho I'm a Notepad++ n00b so there may be a better way. Having said that, one may want to keep a copy of the stylers.xml file that hosts global color settings, migrating colors from the GlobalStyles section to suit (rather than overwriting the file as there's high probability future versions will host new info in said file). :)

Meant to say thanks Michael. I know a few people who will be pleased to see your support file.

Thank you for the nod KB. :)
Title: Re: Notepad++ for LISP heads
Post by: Chris on November 30, 2011, 09:23:08 AM
that worked well, thank you very much.
Title: Re: Notepad++ for LISP heads
Post by: BlackBox on November 30, 2011, 09:58:37 AM
For me, the most convenient way to use a portable version notepad++

That's exactly how I use it Evgeniv, portable (http://portableapps.com/apps/development/notepadpp_portable) + import

I'm a huge fan of PortableApps (PA)... IcoFX, Gimp specifically... now that I know there's a PA version, I'll probably use Notepad++ more often.

that worked well, thank you very much.

1+

Yes, thank you very much. :beer:
Title: Re: Notepad++ for LISP heads
Post by: ElpanovEvgeniy on November 30, 2011, 10:05:40 AM
except portable version, I like the network version program...
for example:
http://pixlr.com/
https://www.autocadws.com/
Title: Re: Notepad++ for LISP heads
Post by: BlackBox on November 30, 2011, 10:12:57 AM
except portable version, I like the network version program...
for example:
http://pixlr.com/
https://www.autocadws.com/

Thanks for sharing!

*Saves Pixlr link to favorites*

I use AutoCADWS for project walk through's, either on my iPhone, or iPad already :wink:
Title: Re: Notepad++ for LISP heads
Post by: JohnK on November 30, 2011, 10:14:08 PM
Thank you for the Methods and Properties dump file MP.

I had a few more/extra "constants" in my syntax file if anyone wanted them.

Code: [Select]
acAttachmentPointTopLeft
acAttachmentPointTopCenter
acAttachmentPointTopRight
acAttachmentPointMiddleLeft
acAttachmentPointMiddleCenter
acAttachmentPointMiddleRight
acAttachmentPointBottomLeft
acAttachmentPointBottomCenter
acAttachmentPointBottomRight
acAlignmentLeft
acAlignmentMiddle
acAlignmentTop
vlax-vbInteger
vlax-vbLong
vlax-vbSingle
vlax-vbDouble
vlax-vbString
vlax-vbObject
vlax-vbBoolean
vlax-vbVariant

EDIT: fixed doubles in list.
Title: Re: Notepad++ for LISP heads
Post by: MP on November 30, 2011, 10:18:24 PM
I had a few more/extra "constants" in my syntax file ...

Thanks John, about 40 extra by my count.  :-D

Subtitle: you doubled, even tripled some of your entries.

Actual unique values:

Code: [Select]
01 acAlignmentLeft
02 acAlignmentMiddle
03 acAlignmentTop
04 acAttachmentPointBottomCenter
05 acAttachmentPointBottomLeft
06 acAttachmentPointBottomRight
07 acAttachmentPointMiddleCenter
08 acAttachmentPointMiddleLeft
09 acAttachmentPointMiddleRight
10 acAttachmentPointTopCenter
11 acAttachmentPointTopLeft
12 acAttachmentPointTopRight
13 vlax-vbBoolean
14 vlax-vbDouble
15 vlax-vbInteger
16 vlax-vbLong
17 vlax-vbObject
18 vlax-vbSingle
19 vlax-vbString
20 vlax-vbVariant

 :-P
Title: Re: Notepad++ for LISP heads
Post by: JohnK on November 30, 2011, 10:22:24 PM
Oops, did i paste those twice? I'll fix my post...
Title: Re: Notepad++ for LISP heads
Post by: BlackBox on November 30, 2011, 10:23:38 PM
Oops, did i paste those twice thrice? I'll fix my post...

FTFY - x3 :wink:
Title: Re: Notepad++ for LISP heads
Post by: MP on November 30, 2011, 10:25:28 PM
EDIT: fixed triples in list.

fixed :whistle:
Title: Re: Notepad++ for LISP heads
Post by: JohnK on November 30, 2011, 10:28:13 PM
One, Two times this thread has shown up in my "unread posts" because you two have thought it necessary to say what exactly?
Title: Re: Notepad++ for LISP heads
Post by: JohnK on November 30, 2011, 10:32:02 PM
butt-head
Title: Re: Notepad++ for LISP heads
Post by: MP on November 30, 2011, 10:34:17 PM
maybe the next time you pass by you should do that
Title: Re: Notepad++ for LISP heads
Post by: VovKa on December 01, 2011, 02:52:08 AM
it seems that 'User defined language' doesn't support 'Fold/Unfold' :(
Title: Re: Notepad++ for LISP heads
Post by: irneb on December 01, 2011, 03:34:53 AM
it seems that 'User defined language' doesn't support 'Fold/Unfold' :(
Yep, that's one of the gripes I have with N++. I just use the built-in lisp language and add the keywords to that. There's only 3 reasons I can state as absolute musts for using N++ over VLIDE: (1) folding, (2) regex search & replace, (3) html formatted export. So if one of those aren't available, N++ is next to useless for me - but now I use the SciTE (http://www.scintilla.org/SciTEDoc.html) editor, thus far so good.

I don't use the AutoComplete - I'd rather want something like you get in Visual Studio (i.e. a drop-down of available functions / variables as you type). Perhaps something using the Scintilla's AutoComplete/CallTip (http://www.scintilla.org/ScintillaDoc.html#Autocompletion). Wish they implemented SciTE with that ... perhaps I'd look into trying it on for size.

BTW, anyone used an editor which can export to forum formatting instead of HTML? The HTML works "fine" until you edit a post, then you loose indents and line-breaks ... for some reason  :ugly: . Would have been great if the forum used similar code to the GeSHi (http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi) package of MediaWiki. It already has a cadlisp code type which formats AutoLisp specific - thus you just need to copy the code as is, no pre-formatting required.
Title: Re: Notepad++ for LISP heads
Post by: BlackBox on December 01, 2011, 06:22:23 AM
BTW, anyone used an editor which can export to forum formatting instead of HTML? The HTML works "fine" until you edit a post, then you loose indents and line-breaks ... for some reason  :ugly: . Would have been great if the forum used similar code to the GeSHi (http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi) package of MediaWiki. It already has a cadlisp code type which formats AutoLisp specific - thus you just need to copy the code as is, no pre-formatting required.

Lee has a routine that will convert LISP to BBC, etc. - but it was written from the context of using VLIDE. As it is a LISP itself (this routine), you'd still need to launch ACAD to invoke.

I wonder how hard it would be to write a BBC equivalent .NET application to that of WLSPHTML (http://www.afralisp.net/archive/lisp/lsp2htlm.htm).exe ...?

As for GeSHi; we actually looked into that here at TheSwamp a while back; it wasn't 100%, and for various reasons decided not to move forward with that. Among multiple tasks, one item if functionality were hoping to incorporate is the ability to colorize the contents contained in the [CODE ] tags, etc.
Title: Re: Notepad++ for LISP heads
Post by: Lee Mac on December 01, 2011, 07:41:34 AM
BTW, anyone used an editor which can export to forum formatting instead of HTML? The HTML works "fine" until you edit a post, then you loose indents and line-breaks ... for some reason  :ugly: . Would have been great if the forum used similar code to the GeSHi (http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi) package of MediaWiki. It already has a cadlisp code type which formats AutoLisp specific - thus you just need to copy the code as is, no pre-formatting required.

Lee has a routine that will convert LISP to BBC, etc. - but it was written from the context of using VLIDE. As it is a LISP itself (this routine), you'd still need to launch ACAD to invoke.

LISP Styler (http://lee-mac.com/lispstyler.html)

Based on code by Evgeniy  :-)
Title: Re: Notepad++ for LISP heads
Post by: BlackBox on December 01, 2011, 08:00:42 AM
BTW, anyone used an editor which can export to forum formatting instead of HTML? The HTML works "fine" until you edit a post, then you loose indents and line-breaks ... for some reason  :ugly: . Would have been great if the forum used similar code to the GeSHi (http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi) package of MediaWiki. It already has a cadlisp code type which formats AutoLisp specific - thus you just need to copy the code as is, no pre-formatting required.

Lee has a routine that will convert LISP to BBC, etc. - but it was written from the context of using VLIDE. As it is a LISP itself (this routine), you'd still need to launch ACAD to invoke.

LISP Styler (http://lee-mac.com/lispstyler.html)

Based on code by Evgeniy  :-)

*Tips hat to Evgeniy*
Title: Re: Notepad++ for LISP heads
Post by: JohnK on December 01, 2011, 10:15:09 AM
Since we're naming our personal text editor preferences...I use Vim ('nuff said).  I don't "have to use other editors for this or that", EVER. I use Vim. All other editors to me are nothing but toys. There is a reason why a lot of IDE's have some sort of (or try to incorporate) a "Vim Mode". "hjkl" for life baby!


*smile*
Title: Re: Notepad++ for LISP heads
Post by: MP on December 01, 2011, 10:33:22 AM
(http://i44.tinypic.com/65tj5e.jpg)
Title: Re: Notepad++ for LISP heads
Post by: JohnK on December 01, 2011, 10:36:59 AM
Yeah, you're right MP. You U.E., N++, guys have enough editors you have to use/learn to finish ONE thing. Besides, its not nice of me to brag.
Title: Re: Notepad++ for LISP heads
Post by: MP on December 01, 2011, 10:47:32 AM
lol, your arrogant need to exploit every single opportunity to float vim pollution is kinda pathetic. (http://www.theswamp.org/screens/mp/wave.gif)
Title: Re: Notepad++ for LISP heads
Post by: alanjt on December 01, 2011, 10:52:30 AM
 :-D
Title: Re: Notepad++ for LISP heads
Post by: JohnK on December 01, 2011, 11:00:17 AM
*BLINK-BLINK* Okay, that caught me off guard. Are you being serious?!
Title: Re: Notepad++ for LISP heads
Post by: MP on December 01, 2011, 11:06:38 AM
(http://i39.tinypic.com/klois.jpg)
Title: Re: Notepad++ for LISP heads
Post by: JohnK on December 01, 2011, 11:16:21 AM
Well, then, I apologize.
Title: Re: Notepad++ for LISP heads
Post by: Lee Mac on December 01, 2011, 11:26:09 AM
Quote from: Godwin's Law
"As an online discussion grows longer, the probability of a comparison involving Nazis or Hitler Vim approaches 1."

FTFY
Title: Re: Notepad++ for LISP heads
Post by: MP on December 01, 2011, 11:36:40 AM
Well, then, I apologize.

thanks; accepted

and lol at Lee's post :-D
Title: Re: Notepad++ for LISP heads
Post by: nivuahc on December 01, 2011, 03:01:07 PM
...I use the SciTE (http://www.scintilla.org/SciTEDoc.html) editor, thus far so good.

Got a .properties file for Autolisp?  :?
Title: Re: Notepad++ for LISP heads
Post by: irneb on December 02, 2011, 01:06:17 AM
...I use the SciTE (http://www.scintilla.org/SciTEDoc.html) editor, thus far so good.

Got a .properties file for Autolisp?  :?
I'll have to get the one from my home PC, don't have it here at the office. But basically you duplicate the Closjure.properties, remove the clojure-specific keywords and add the AutoLisp specific ones.

What I'd really like though is to get hold of an api file, so it pops up with a note to show the function's arguments. That would save me a lot of F1'ing  :kewl: ... "Now how does the nth function work again? List then index, or the other way round? I remember the nth and ssname are different, but can't for the life of me remember which is which!"
Title: Re: Notepad++ for LISP heads
Post by: irneb on December 05, 2011, 08:00:18 AM
Here's my SciTE's lisp.properties file. Basically just took the original and added an autolisp dialect with the keywords. Works for lsp & mnl files. Any *.lisp files woud still use the defaul XLisp dialect and *.scm the Scheme.

Title: Re: Notepad++ for LISP heads
Post by: nivuahc on December 05, 2011, 11:15:49 AM
Danke  :-)
Title: Re: Notepad++ for LISP heads
Post by: xiaxiang on December 08, 2011, 07:15:28 AM
It is great, I‘ll try
Thank
Title: Re: Notepad++ for LISP heads
Post by: CADbloke on November 15, 2013, 05:20:54 AM
Greetings

Notepad++ has recently been treated to an updated UDL (User Defined Language) engine. I've managed to crash together a Syntax highlighting file that highlights different categories of commands differently and also includes code-folding on brackets. It's at https://gist.github.com/CADbloke/7481998 - feel free to fork it, download it or even, if you're game, use it. Let me know which parts I broke.

Oh, you might want to change some of the colours - I never said I was a designer  - see the attached screengrab.

The only caveat is that the highlighting for some of the vl..get and vl..put functions may look a little off - there isn't enough room in the lexer to put them all in - it gave up after a little over 53k character in one of the fields.

cheers
Ewen
Title: Re: Notepad++ for LISP heads
Post by: roy_043 on November 15, 2013, 05:38:08 AM
... there isn't enough room in the lexer to put them all in - it gave up after a little over 53k character in one of the fields.
I solved this by using more than one field for the function names. Since there are 8 groups of keywords using more than one field is not a problem.
Title: Re: Notepad++ for LISP heads
Post by: 77077 on September 29, 2014, 01:07:45 AM
great ! Gp thanks for sharing!
Title: Re: Notepad++ for LISP heads
Post by: AIberto on September 19, 2015, 11:52:05 AM
Here's my SciTE's lisp.properties file. Basically just took the original and added an autolisp dialect with the keywords. Works for lsp & mnl files. Any *.lisp files woud still use the defaul XLisp dialect and *.scm the Scheme.


Dear irneb , How use this ?
Title: Re: Notepad++ for LISP heads
Post by: AIberto on September 19, 2015, 11:57:12 AM
now for the noob question,  I use notepad++ quite often, and everytime I setup a new machine, I have to manually input all my coding colors.  How do I actually import this file?  I tried doing the import style theme, but I dont think thats quite the right way to do it. (IOW it didnt work)

For me, the most convenient way to use a portable version notepad++

How do I add a new language:

Dear ElpanovEvgeniy

Have a DCL.XML for notepad++ ? Thanks!
Title: Re: Notepad++ for LISP heads
Post by: AIberto on September 20, 2015, 08:35:44 AM
@MP

How change the parenthesis color of matching ?

I want change the green color to red color.
Title: Re: Notepad++ for LISP heads
Post by: AIberto on September 22, 2015, 07:05:31 AM
Dear  Roy
why if I use my custom Themes(*.xml),  " Indent file"(Fold) will ==>  all row Left-aligned. ?

Title: Re: Notepad++ for LISP heads
Post by: irneb on September 22, 2015, 07:58:19 AM
Here's my SciTE's lisp.properties file. Basically just took the original and added an autolisp dialect with the keywords. Works for lsp & mnl files. Any *.lisp files woud still use the defaul XLisp dialect and *.scm the Scheme.


Dear irneb , How use this ?
Very long since I've used SciTe, these days my editor of choice is Kate (but that's because I'm on Kubuntu).

Anyhow, that file is a custom language settings file. To install it, copy it into the SciTe program folder, then edit the Global Options or User Options file and add a line like:
Code: [Select]
import lispFor more information https://code.google.com/p/scite-files/wiki/Customization
Title: Re: Notepad++ for LISP heads
Post by: roy_043 on September 22, 2015, 08:43:17 AM
Dear  Roy
why if I use my custom Themes(*.xml),  " Indent file"(Fold) will ==>  all row Left-aligned. ?
I don't understand.

To answer one of your other questions:
How to change the parenthesis color:
Code: [Select]
Menu > Settings > Style configurator...
> Language: Global Styles + Style: Brace Highlight style > Foreground colour
Title: Re: Notepad++ for LISP heads
Post by: AIberto on September 22, 2015, 10:37:09 AM
Here's my SciTE's lisp.properties file. Basically just took the original and added an autolisp dialect with the keywords. Works for lsp & mnl files. Any *.lisp files woud still use the defaul XLisp dialect and *.scm the Scheme.


Dear irneb , How use this ?
Very long since I've used SciTe, these days my editor of choice is Kate (but that's because I'm on Kubuntu).

Anyhow, that file is a custom language settings file. To install it, copy it into the SciTe program folder, then edit the Global Options or User Options file and add a line like:
Code: [Select]
import lispFor more information https://code.google.com/p/scite-files/wiki/Customization

Dear irneb ,Thank you for tell me.
Title: Re: Notepad++ for LISP heads
Post by: AIberto on September 22, 2015, 10:42:47 AM
Quote
To answer one of your other questions:
How to change the parenthesis color:
Code: [Select]
Menu > Settings > Style configurator...
> Language: Global Styles + Style: Brace Highlight style > Foreground colour

Many Thanks Roy.
Dear  Roy
why if I use my custom Themes(*.xml),  " Indent file"(Fold) will ==>  all row Left-aligned. ?
I don't understand.

See my Demo at Attachment. Thanks.
Title: Re: Notepad++ for LISP heads
Post by: Lee Mac on September 22, 2015, 10:55:52 AM
The 'Indent by Fold' option looks to be a plug-in and not a standard NP++ option, and so this plug-in may be incompatible with custom languages.
Title: Re: Notepad++ for LISP heads
Post by: AIberto on September 22, 2015, 11:37:51 AM
The 'Indent by Fold' option looks to be a plug-in and not a standard NP++ option, and so this plug-in may be incompatible with custom languages.

Maybe ,Thanks Lee , 'Indent by Fold' is recommended to me by Roy .
Title: Re: Notepad++ for LISP heads
Post by: roy_043 on September 22, 2015, 12:07:13 PM
Your custom language does not have folding.
To correct this:
Code: [Select]
Menu > Language > Define your language...
> User language: Choose your language
> Tab: Folder & Default
> Folding in code 1 style > Open: ( and Close: )
Title: Re: Notepad++ for LISP heads
Post by: AIberto on September 23, 2015, 06:34:01 AM
Your custom language does not have folding.
To correct this:
Code: [Select]
Menu > Language > Define your language...
> User language: Choose your language
> Tab: Folder & Default
> Folding in code 1 style > Open: ( and Close: )


Thank you , Roy . I tried . But problem still .

and I modified  Mp's xml , problem still too.
Code: [Select]
<KeywordLists>
<Keywords name="Folders in code1, open">(</Keywords>
 <Keywords name="Folders in code1, middle"></Keywords>
<Keywords name="Folders in code1, close">)</Keywords>
.......
.......
.......
</KeywordLists>

Title: Re: Notepad++ for LISP heads
Post by: roy_043 on September 23, 2015, 08:35:17 AM
The problem is that the parenthesis are also identified as operators.
Code: [Select]
Menu > Language > Define your language...
> User language: Choose your language
> Tab: Operators & Delimiters
> Operator style > Operator 1
> Remove ( and ). Add '
Title: Re: Notepad++ for LISP heads
Post by: AIberto on September 23, 2015, 09:39:50 AM
> Remove ( and ). Add '[/code]

where have '  ?  ,only see ( and) .

if remove ( and ) , The parentheses color will lost .

Code: [Select]
<WordsStyle name="OPERATOR" styleID="10" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
Title: Re: Notepad++ for LISP heads
Post by: roy_043 on September 23, 2015, 10:49:30 AM
where have '  ?
It is not there, my suggestion is that you *add* it.

if remove ( and ) , The parentheses color will lost .
On the Folder & Default tab use the appropriate Styler button.
Title: Re: Notepad++ for LISP heads
Post by: AIberto on September 23, 2015, 11:24:42 AM
where have '  ?
It is not there, my suggestion is that you *add* it.

if remove ( and ) , The parentheses color will lost .
On the Folder & Default tab use the appropriate Styler button.

Good man ,Roy. I'd like to express my gratitude.