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

0 Members and 1 Guest are viewing this topic.

AIberto

  • Guest
Re: Notepad++ for LISP heads
« Reply #60 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.

AIberto

  • Guest
Re: Notepad++ for LISP heads
« Reply #61 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.

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Notepad++ for LISP heads
« Reply #62 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.

AIberto

  • Guest
Re: Notepad++ for LISP heads
« Reply #63 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 .

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Notepad++ for LISP heads
« Reply #64 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: )

AIberto

  • Guest
Re: Notepad++ for LISP heads
« Reply #65 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>


roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Notepad++ for LISP heads
« Reply #66 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 '

AIberto

  • Guest
Re: Notepad++ for LISP heads
« Reply #67 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" />

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Notepad++ for LISP heads
« Reply #68 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.

AIberto

  • Guest
Re: Notepad++ for LISP heads
« Reply #69 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.