Author Topic: Notepad+++  (Read 9267 times)

0 Members and 1 Guest are viewing this topic.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Notepad+++
« Reply #15 on: May 29, 2015, 07:59:58 AM »
@ ymg:
About your regular expressions:
1.
What does (?s) do?
2.
To catch single line comments use ;.*?$ instead of ;.*$

77077

  • Guest
Re: Notepad+++
« Reply #16 on: May 29, 2015, 08:01:47 AM »
@ 77077: Can you post your functionList.xml?


roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Notepad+++
« Reply #17 on: May 29, 2015, 08:05:07 AM »
But that's the default file. You have to edit the file. That is what this topic is about...

77077

  • Guest
Re: Notepad+++
« Reply #18 on: May 29, 2015, 08:11:50 AM »
But that's the default file. You have to edit the file. That is what this topic is about...

Hi roy ,Where has the edited file ?

77077

  • Guest
Re: Notepad+++
« Reply #19 on: May 29, 2015, 08:24:40 AM »
Hi roy
Here is simple routine
Can add something like this ?

 (defun c:Test (/ st ss)
Select the TAG you want to change its value:[TAG1(1)/TAG2(2)/TAG3(3)/TAG4(4)/TAG5(5)] <TAG1>:



« Last Edit: May 29, 2015, 10:07:35 AM by 77077 »

ymg

  • Guest
Re: Notepad+++
« Reply #20 on: May 29, 2015, 09:05:49 AM »
Roy,

The (?s) was to allow multilines in Notepad++ without having to
check the box.

But I am far from being very fluent with regex, like the song
I still have 10 miles to go on a 9 miles road.

ymg
« Last Edit: May 29, 2015, 09:10:48 AM by ymg »

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Notepad+++
« Reply #21 on: May 29, 2015, 09:09:10 AM »
But that's the default file. You have to edit the file. That is what this topic is about...
Hi roy ,Where has the edited file ?

This is the parser I have used:
Code: [Select]
<parser id="lisp_function" displayName="lsp" commentExpr="((;\|.*?\|;)|(;.*?$))">
  <function
    mainExpr="(?&lt;=[\s\(]defun\s)\s*[^\s\(]*"
    displayMode="$functionName">
  </function>
</parser>

I have attached my file.

ChrisCarlson

  • Guest
Re: Notepad+++
« Reply #22 on: May 29, 2015, 09:14:36 AM »
That works pretty smoothly Roy, thanks!

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Notepad+++
« Reply #23 on: May 29, 2015, 09:23:33 AM »
Hi roy
Here is simple routine...
You should start a new topic for this problem. But IMO your request is strange. Tags are not restricted to the "TAG?" format. Except for quick tests I would never use "TAG1", "TAG2" etc.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Notepad+++
« Reply #24 on: May 29, 2015, 09:25:37 AM »
That works pretty smoothly Roy, thanks!
Thanks. Note that if you want the list to also contain the arguments then you should study ymg's suggestions.

77077

  • Guest
Re: Notepad+++
« Reply #25 on: May 29, 2015, 11:37:18 AM »
roy , thanks a lot.  function list is nice .

77077

  • Guest
Re: Notepad+++
« Reply #26 on: May 29, 2015, 10:29:30 PM »
roy ,I have a new question .
set language ----> L--->LISP  , ok, function list is ok
set language ----> user define language---> function list not ok .


roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Notepad+++
« Reply #27 on: May 31, 2015, 11:22:35 AM »
roy ,I have a new question .
set language ----> L--->LISP  , ok, function list is ok
set language ----> user define language---> function list not ok .
The info you need is in the file...

77077

  • Guest
Re: Notepad+++
« Reply #28 on: May 31, 2015, 12:04:20 PM »
roy ,I have a new question .
set language ----> L--->LISP  , ok, function list is ok
set language ----> user define language---> function list not ok .
The info you need is in the file...

Yes , I open functionlist .xml , but ,I can't understand , can you tell me where I need modify ?

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Notepad+++
« Reply #29 on: June 01, 2015, 03:59:47 AM »
Info in the file:
Code: [Select]
for User Defined Languages:
<association userDefinedLangName="my user defined language" id="my_udl_passer_id"/>
<association userDefinedLangName="Autocad" id="my_autocad_passer_id"/>

So after:
Code: [Select]
<association langID="30" id="lisp_function"/>Insert:
Code: [Select]
<association userDefinedLangName="LSP" id="lisp_function"/>Change "LSP" to match your name.