discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

OpenSCAD modules and functions list in editors Geany or Notepad++

J
jpmendes
Thu, Oct 1, 2015 10:43 PM

Hi,

Does someone achieved to get a list of OpenSCAD modules and functions in
Geany's 'symbol table' or in Notepad++ 'function list' windows?  I'm using
the OpenSCAD configuration files for those editors found in Thingiverse but
I only get a list of symbols if define the .scad file as a C, C++ or C#
types file. It would be very handy to have this functionality. I tried to
change some configuration files in those editors without success. I'm not a
programming expert. Any help is welcome.
Thanks a lot.

--
View this message in context: http://forum.openscad.org/OpenSCAD-modules-and-functions-list-in-editors-Geany-or-Notepad-tp14042.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi, Does someone achieved to get a list of OpenSCAD modules and functions in Geany's 'symbol table' or in Notepad++ 'function list' windows? I'm using the OpenSCAD configuration files for those editors found in Thingiverse but I only get a list of symbols if define the .scad file as a C, C++ or C# types file. It would be very handy to have this functionality. I tried to change some configuration files in those editors without success. I'm not a programming expert. Any help is welcome. Thanks a lot. -- View this message in context: http://forum.openscad.org/OpenSCAD-modules-and-functions-list-in-editors-Geany-or-Notepad-tp14042.html Sent from the OpenSCAD mailing list archive at Nabble.com.
GC
Gary Crowell
Fri, Oct 2, 2015 3:33 PM

There is this: http://www.thingiverse.com/thing:167899  for Notepad++  and
a couple of others on Thingiverse.  I was in the midst of a significant
upgrade to the tooltips and keywords, but got sidetracked by a trip to the
hospital.  I'll try to get that update finished and posted this weekend.

On Thu, Oct 1, 2015 at 4:43 PM, jpmendes jpmendes54@gmail.com wrote:

Hi,

Does someone achieved to get a list of OpenSCAD modules and functions in
Geany's 'symbol table' or in Notepad++ 'function list' windows?  I'm using
the OpenSCAD configuration files for those editors found in Thingiverse but
I only get a list of symbols if define the .scad file as a C, C++ or C#
types file. It would be very handy to have this functionality. I tried to
change some configuration files in those editors without success. I'm not a
programming expert. Any help is welcome.
Thanks a lot.

--
View this message in context:
http://forum.openscad.org/OpenSCAD-modules-and-functions-list-in-editors-Geany-or-Notepad-tp14042.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

There is this: http://www.thingiverse.com/thing:167899 for Notepad++ and a couple of others on Thingiverse. I was in the midst of a significant upgrade to the tooltips and keywords, but got sidetracked by a trip to the hospital. I'll try to get that update finished and posted this weekend. On Thu, Oct 1, 2015 at 4:43 PM, jpmendes <jpmendes54@gmail.com> wrote: > Hi, > > Does someone achieved to get a list of OpenSCAD modules and functions in > Geany's 'symbol table' or in Notepad++ 'function list' windows? I'm using > the OpenSCAD configuration files for those editors found in Thingiverse but > I only get a list of symbols if define the .scad file as a C, C++ or C# > types file. It would be very handy to have this functionality. I tried to > change some configuration files in those editors without success. I'm not a > programming expert. Any help is welcome. > Thanks a lot. > > > > -- > View this message in context: > http://forum.openscad.org/OpenSCAD-modules-and-functions-list-in-editors-Geany-or-Notepad-tp14042.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > -- ---------------------------------------------- Gary A. Crowell Sr., P.E. <http://www.ipels.idaho.gov/>, CID+ <http://dc.ipc.org/html/default.htm> Linkedin <http://www.linkedin.com/in/garyacrowellsr> Elance <http://www.linkedin.com/redirect?url=http%3A%2F%2Fgaryacrowellsr%2Eelance%2Ecom&urlhash=kJm9> KE7FIZ <http://www.arrl.org> Things <http://www.thingiverse.com/garyacrowellsr/designs> RocketryCNC <https://www.etsy.com/shop/RocketryCNC?ref=l2-shopheader-name>
J
jpmendes
Fri, Oct 2, 2015 9:15 PM

Thanks for your reply. It seems to me that we have to make a new parser
section in "functionList.xml" for notepad++ to work. For Geany I have no
idea. I tried to modify one of the existing parser sections to detect the
words "module" and "function" but I had no success. I tried with this code:
...
<association ext=".scad" id="OpenSCAD"/>

</associationMap> <parsers>

<parser id="OpenSCAD" displayName="OpenSCAD Module" commentExpr="((/\*.*?\*)/|(//.*?$))">
<function mainExpr="^[\t ]*(module|function)\w+" displayMode="$functionName">
<functionName>
<nameExpr expr="[^\t(module|function)]+[\w]+"/>
</functionName>
</function>
</parser>

Best regards.

--
View this message in context: http://forum.openscad.org/OpenSCAD-modules-and-functions-list-in-editors-Geany-or-Notepad-tp14042p14047.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Thanks for your reply. It seems to me that we have to make a new parser section in "functionList.xml" for notepad++ to work. For Geany I have no idea. I tried to modify one of the existing parser sections to detect the words "module" and "function" but I had no success. I tried with this code: ... <association ext=".scad" id="OpenSCAD"/> </associationMap> <parsers> <parser id="OpenSCAD" displayName="OpenSCAD Module" commentExpr="((/\*.*?\*)/|(//.*?$))"> <function mainExpr="^[\t ]*(module|function)\w+" displayMode="$functionName"> <functionName> <nameExpr expr="[^\t(module|function)]+[\w]+"/> </functionName> </function> </parser> Best regards. -- View this message in context: http://forum.openscad.org/OpenSCAD-modules-and-functions-list-in-editors-Geany-or-Notepad-tp14042p14047.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Fri, Oct 2, 2015 11:09 PM

On 10/02/2015 11:15 PM, jpmendes wrote:

For Geany I have no idea. I tried to modify one of the existing parser
sections to detect the words "module" and "function" but I had no success.

Is the one listed in the Manual not working anymore?
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_an_external_Editor_with_OpenSCAD

If that's the case, it would be better to remove it there or add a note
if it's only working for older versions.

ciao,
Torsten.

On 10/02/2015 11:15 PM, jpmendes wrote: > For Geany I have no idea. I tried to modify one of the existing parser > sections to detect the words "module" and "function" but I had no success. > Is the one listed in the Manual not working anymore? https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_an_external_Editor_with_OpenSCAD If that's the case, it would be better to remove it there or add a note if it's only working for older versions. ciao, Torsten.
J
jpmendes
Sat, Oct 3, 2015 4:31 PM

Hello,
Yes, it does it does syntax highlight and color and auto completion. I'm
referring to navigation of modules and functions in the symbols windows.
That functionality is missing in the OpenSCAD config files for both
Notepad++ and Geany. I'm using 64 bit Windows 7 OS.
Regards

--
View this message in context: http://forum.openscad.org/OpenSCAD-modules-and-functions-list-in-editors-Geany-or-Notepad-tp14042p14052.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hello, Yes, it does it does syntax highlight and color and auto completion. I'm referring to navigation of modules and functions in the symbols windows. That functionality is missing in the OpenSCAD config files for both Notepad++ and Geany. I'm using 64 bit Windows 7 OS. Regards -- View this message in context: http://forum.openscad.org/OpenSCAD-modules-and-functions-list-in-editors-Geany-or-Notepad-tp14042p14052.html Sent from the OpenSCAD mailing list archive at Nabble.com.