Editors to integrate into OpenSCAD

classic Classic list List threaded Threaded
24 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Editors to integrate into OpenSCAD

Shaina Sabarwal
As integrating a code editor into OpenSCAD editor to enhance its
features and usability is a part of my proposal, I want to take
community's suggestions on different code editors, so as to chose the
appropriate one to integrate.

Here are few which I have looked into
[0] http://www.riverbankcomputing.com/software/qscintilla/intro
[1] http://bellard.org/qemacs/
[2] https://github.com/pasnox/qodeedit

Please look into these and help me to decide for the best. Also
suggest if you have any other in your mind.




--
Thanks
Shaina Sabarwal

To die is nothing, but it is terrible not to live.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

drxenocide
When I occasionally need another editor, I use notepad++ for windows. http://notepad-plus-plus.org/


On Fri, May 16, 2014 at 1:12 PM, Shaina Sabarwal <[hidden email]> wrote:
As integrating a code editor into OpenSCAD editor to enhance its
features and usability is a part of my proposal, I want to take
community's suggestions on different code editors, so as to chose the
appropriate one to integrate.

Here are few which I have looked into
[0] http://www.riverbankcomputing.com/software/qscintilla/intro
[1] http://bellard.org/qemacs/
[2] https://github.com/pasnox/qodeedit

Please look into these and help me to decide for the best. Also
suggest if you have any other in your mind.




--
Thanks
Shaina Sabarwal

To die is nothing, but it is terrible not to live.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

Kevin Crowley
Except for short projects I always use an external editor so I can maximize the viewing area.


On Fri, May 16, 2014 at 1:22 PM, Ari Diacou <[hidden email]> wrote:
When I occasionally need another editor, I use notepad++ for windows. http://notepad-plus-plus.org/


On Fri, May 16, 2014 at 1:12 PM, Shaina Sabarwal <[hidden email]> wrote:
As integrating a code editor into OpenSCAD editor to enhance its
features and usability is a part of my proposal, I want to take
community's suggestions on different code editors, so as to chose the
appropriate one to integrate.

Here are few which I have looked into
[0] http://www.riverbankcomputing.com/software/qscintilla/intro
[1] http://bellard.org/qemacs/
[2] https://github.com/pasnox/qodeedit

Please look into these and help me to decide for the best. Also
suggest if you have any other in your mind.




--
Thanks
Shaina Sabarwal

To die is nothing, but it is terrible not to live.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

David Gustavson
In reply to this post by drxenocide
I like BBEdit (http://barebones.com) for the Mac.
Dave
On May 16, 2014, at 20140516-11:22, Ari Diacou <[hidden email]> wrote:

When I occasionally need another editor, I use notepad++ for windows. http://notepad-plus-plus.org/


On Fri, May 16, 2014 at 1:12 PM, Shaina Sabarwal <[hidden email]> wrote:
As integrating a code editor into OpenSCAD editor to enhance its
features and usability is a part of my proposal, I want to take
community's suggestions on different code editors, so as to chose the
appropriate one to integrate.

Here are few which I have looked into
[0] http://www.riverbankcomputing.com/software/qscintilla/intro
[1] http://bellard.org/qemacs/
[2] https://github.com/pasnox/qodeedit

Please look into these and help me to decide for the best. Also
suggest if you have any other in your mind.




--
Thanks
Shaina Sabarwal

To die is nothing, but it is terrible not to live.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

Jeshua Lacock

On May 16, 2014, at 1:14 PM, David Gustavson <[hidden email]> wrote:

> I like BBEdit (http://barebones.com) for the Mac.

+1

There is a OpenSCAD syntax extension for BBEdit but I wish it was better…



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

Gary Crowell
FWIW I've recently updated my Notepad++ OpenSCAD Autocomplete and CallTips files on Thingiverse: http://www.thingiverse.com/thing:167899

However it seems to be broken for Notepad++ versions beyond v6.5.3.  Dunno what's up with that.

Gary




On Fri, May 16, 2014 at 1:16 PM, Jeshua Lacock <[hidden email]> wrote:

On May 16, 2014, at 1:14 PM, David Gustavson <[hidden email]> wrote:

> I like BBEdit (http://barebones.com) for the Mac.

+1

There is a OpenSCAD syntax extension for BBEdit but I wish it was better…



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
----------------------------------------------
Gary A. Crowell Sr., P.E., CID+

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

MarkDurbin
This post has NOT been accepted by the mailing list yet.
You could do a lot worse than https://atom.io/
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

Joseph Lenox
In reply to this post by Gary Crowell
I use gVim myself, which someone's done syntax highlighting for. Set auto-reload and compile and the preview window updates when you write. On my to-do list is to look at Vim3d and see what can be borrowed from that to provide some form of editor integration.


--Joseph Lenox


On Fri, May 16, 2014 at 2:36 PM, Gary Crowell <[hidden email]> wrote:
FWIW I've recently updated my Notepad++ OpenSCAD Autocomplete and CallTips files on Thingiverse: http://www.thingiverse.com/thing:167899

However it seems to be broken for Notepad++ versions beyond v6.5.3.  Dunno what's up with that.

Gary




On Fri, May 16, 2014 at 1:16 PM, Jeshua Lacock <[hidden email]> wrote:

On May 16, 2014, at 1:14 PM, David Gustavson <[hidden email]> wrote:

> I like BBEdit (http://barebones.com) for the Mac.

+1

There is a OpenSCAD syntax extension for BBEdit but I wish it was better…



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
----------------------------------------------
Gary A. Crowell Sr., P.E., CID+

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

drxenocide
Thanks Gary, I think I used your files. Although I'm assuming that this person is doing something that would be more automated than I remember your fix being. Although I kind-of stopped caring about notepad++ when the 2013.06 build fixed most of the issues I had with OpenSCAD - now i just use the console mostly (unless I wrote auto-crash code that needs to be fixed - e.g. 500k vertices).


On Fri, May 16, 2014 at 4:09 PM, Joseph Lenox <[hidden email]> wrote:
I use gVim myself, which someone's done syntax highlighting for. Set auto-reload and compile and the preview window updates when you write. On my to-do list is to look at Vim3d and see what can be borrowed from that to provide some form of editor integration.


--Joseph Lenox


On Fri, May 16, 2014 at 2:36 PM, Gary Crowell <[hidden email]> wrote:
FWIW I've recently updated my Notepad++ OpenSCAD Autocomplete and CallTips files on Thingiverse: http://www.thingiverse.com/thing:167899

However it seems to be broken for Notepad++ versions beyond v6.5.3.  Dunno what's up with that.

Gary




On Fri, May 16, 2014 at 1:16 PM, Jeshua Lacock <[hidden email]> wrote:

On May 16, 2014, at 1:14 PM, David Gustavson <[hidden email]> wrote:

> I like BBEdit (http://barebones.com) for the Mac.

+1

There is a OpenSCAD syntax extension for BBEdit but I wish it was better…



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
----------------------------------------------
Gary A. Crowell Sr., P.E., CID+

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

MichaelAtOz
Administrator
In reply to this post by Shaina Sabarwal
I use Notepad++, but unfortunately it is Windows only, but it is based on Scintilla, which qscintilla is too, so that should be similar, and being Qt based would seem to be a good fit. So it shouldn't be too hard to use the autocomplete/syntax highlighting for OpenSCAD I imagine.
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

MichaelAtOz
Administrator
In reply to this post by Gary Crowell
Gary Crowell wrote
FWIW I've recently updated my Notepad++ OpenSCAD Autocomplete and CallTips
files on Thingiverse: http://www.thingiverse.com/thing:167899

However it seems to be broken for Notepad++ versions beyond v6.5.3.  Dunno
what's up with that.
I'm using my variant of JustBlairs with NP++ 6.5.5 without issue.
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

doug.moen
In reply to this post by Shaina Sabarwal
None of the replies seem to answer Shaina's question. Since the OpenSCAD GUI is implemented using Qt, I assume that what we are looking for is a Qt editor widget class that can be used as a replacement for the current text editor widget, and which supports the additional functionality that Shaina has proposed, such as syntax highlighting.

Of the 3 options listed, QScintilla appears to be a good choice. QEmacs appears to be a standalone tool, not a widget, with a design that doesn't seem suitable for direct inclusion in the OpenSCAD source code. QodeEdit seems to be a tiny project with little community support and fewer features that are relevant to OpenSCAD. But I'm not a QT programmer, so I can't give advice based on experience. You could also try out several different open source packages and see which ones are easiest to integrate and customize.


On 16 May 2014 13:12, Shaina Sabarwal <[hidden email]> wrote:
As integrating a code editor into OpenSCAD editor to enhance its
features and usability is a part of my proposal, I want to take
community's suggestions on different code editors, so as to chose the
appropriate one to integrate.

Here are few which I have looked into
[0] http://www.riverbankcomputing.com/software/qscintilla/intro
[1] http://bellard.org/qemacs/
[2] https://github.com/pasnox/qodeedit

Please look into these and help me to decide for the best. Also
suggest if you have any other in your mind.




--
Thanks
Shaina Sabarwal

To die is nothing, but it is terrible not to live.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

Miro Hrončok
I have no experience with QScintilla, but Scintilla is very good project in general - I'd go for it.

Miro Hrončok

Telefon: +420777974800


2014-05-17 15:53 GMT+02:00 doug moen <[hidden email]>:
None of the replies seem to answer Shaina's question. Since the OpenSCAD GUI is implemented using Qt, I assume that what we are looking for is a Qt editor widget class that can be used as a replacement for the current text editor widget, and which supports the additional functionality that Shaina has proposed, such as syntax highlighting.

Of the 3 options listed, QScintilla appears to be a good choice. QEmacs appears to be a standalone tool, not a widget, with a design that doesn't seem suitable for direct inclusion in the OpenSCAD source code. QodeEdit seems to be a tiny project with little community support and fewer features that are relevant to OpenSCAD. But I'm not a QT programmer, so I can't give advice based on experience. You could also try out several different open source packages and see which ones are easiest to integrate and customize.


On 16 May 2014 13:12, Shaina Sabarwal <[hidden email]> wrote:
As integrating a code editor into OpenSCAD editor to enhance its
features and usability is a part of my proposal, I want to take
community's suggestions on different code editors, so as to chose the
appropriate one to integrate.

Here are few which I have looked into
[0] http://www.riverbankcomputing.com/software/qscintilla/intro
[1] http://bellard.org/qemacs/
[2] https://github.com/pasnox/qodeedit

Please look into these and help me to decide for the best. Also
suggest if you have any other in your mind.




--
Thanks
Shaina Sabarwal

To die is nothing, but it is terrible not to live.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

kintel
Administrator
In reply to this post by Shaina Sabarwal
Hi Shaina,

My gut feeling is that QScintilla is the better of the three you mention, mostly due to its maturity. Last time I looked into this I used QCodeEdit (http://qcodeedit.org), but it fell out of maintenance. It looks like it’s more active now, but I haven’t looked at the details.

Another suggestion, although it’s a bit of a stretch of the imagination, is to look into possibilities for packaging the Atom editor in a Qt Web view and embed it into OpenSCAD: https://atom.io

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

Gary Crowell
In reply to this post by MichaelAtOz
Thanks for noting that; might help me figure out what's going on.

Gary


On Fri, May 16, 2014 at 11:33 PM, MichaelAtOz <[hidden email]> wrote:
Gary Crowell wrote
> FWIW I've recently updated my Notepad++ OpenSCAD Autocomplete and CallTips
> files on Thingiverse: http://www.thingiverse.com/thing:167899
>
> However it seems to be broken for Notepad++ versions beyond v6.5.3.  Dunno
> what's up with that.

I'm using my variant of JustBlairs with NP++ 6.5.5 without issue.




--
View this message in context: http://forum.openscad.org/Editors-to-integrate-into-OpenSCAD-tp7918p7933.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
----------------------------------------------
Gary A. Crowell Sr., P.E., CID+

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

Shaina Sabarwal
In reply to this post by doug.moen
On Sat, May 17, 2014 at 7:23 PM, doug moen <[hidden email]> wrote:
> None of the replies seem to answer Shaina's question. Since the OpenSCAD GUI
> is implemented using Qt, I assume that what we are looking for is a Qt
> editor widget class that can be used as a replacement for the current text
> editor widget, and which supports the additional functionality that Shaina
> has proposed, such as syntax highlighting.

Well, thanks for this reply.
> Of the 3 options listed, QScintilla appears to be a good choice. QEmacs
> appears to be a standalone tool, not a widget, with a design that doesn't
> seem suitable for direct inclusion in the OpenSCAD source code. QodeEdit
> seems to be a tiny project with little community support and fewer features
> that are relevant to OpenSCAD. But I'm not a QT programmer, so I can't give
> advice based on experience. You could also try out several different open
> source packages and see which ones are easiest to integrate and customize.

I am looking into their features, pros and cons for inclusions
carefully and preparing a doc comparing them. That will help everyone
to chose appropriate one.


--
Shaina Sabarwal
blog: shainasabarwal.wordpress.com
github: github.com/shaina7837

To die is nothing, but it is terrible not to live.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

Shaina Sabarwal
In reply to this post by kintel
On Sat, May 17, 2014 at 9:19 PM, Marius Kintel <[hidden email]> wrote:
> Another suggestion, although it’s a bit of a stretch of the imagination, is to look into possibilities for packaging the Atom editor in a Qt Web view and embed it into OpenSCAD: https://atom.io


That seems to be a great idea. Also will add it into the comparison.

--
Shaina Sabarwal
blog: shainasabarwal.wordpress.com
github: github.com/shaina7837

To die is nothing, but it is terrible not to live.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

Shaina Sabarwal
On Sun, May 18, 2014 at 3:39 PM, Shaina Sabarwal
<[hidden email]> wrote:
> That seems to be a great idea. Also will add it into the comparison.

https://github.com/openscad/openscad/wiki/Editor-Comparison-for-integrating-with-OpenSCAD
This is the wiki page, where I made little comparison among the
editors. Check it out.
However, most of the members here preferred QScintilla and after this
comparison, I also like it. So will be working on its integration with
OpenSCAD.


--
Shaina Sabarwal
blog: shainasabarwal.wordpress.com
github: github.com/shaina7837

To die is nothing, but it is terrible not to live.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

runsun
In reply to this post by MichaelAtOz
>>> I use Notepad++, but unfortunately it is Windows only

Been using Notepad++ with Wine on Linux Mint for javascript/python for about 2 years without problem.

Trying that as an external editor for OpenSCAD works ok, too. I didn't use any juicy Notepad++ syntax file for OpenScad, but just turn on javascript language settings for .scad. I can enjoy features I desparately need:

line-number,
 code folding (partially),
auto tab indentation, and
group tabbing (select a block of line, hit [tab] makes them all indent, hit [shift-tab] makes them all un-indent).

I didn't use it all the time, because:

(1) using an external editor means that you have to save the version you are working on in order to get it rendered. Very often I just wanna check if a simple modification works without saving it.

(2) I also experienced a delay of response from the keyboard, for example, one of the most key combination, ctrl-s for save/rendering, often gives me "s" instead of saving it. Trying to type "(" (shift-9) gives me 9, and copy a text (ctrl-c) give me c (and delete the selected text !!). I have to be very very careful on typing, and that troubles me a lot.
 
The issue (2), that I haven't got time to dig into, could be due to my setting or even my keyboard so might not a common issue for using NP++/Wine/Linux with OpenScad.  


$ Runsun Pan, PhD
$ libs: scadx, doctest, faces(git), offline doc(git), runscad.py(2,git), editor of choice: CudaText ( OpenSCAD lexer); $ Tips; $ Snippets
Reply | Threaded
Open this post in threaded view
|

Re: Editors to integrate into OpenSCAD

runsun
In reply to this post by doug.moen
Don't know if the following info helpful:

"Notepad++, based on the Scintilla editor component, is written in C++ with only Win32 API calls using only the STL in order to increase performance and reduce program size. The aim of Notepad++ is to reduce overall power consumption by using efficient binaries that require less CPU power"

http://en.wikipedia.org/wiki/Notepad++


$ Runsun Pan, PhD
$ libs: scadx, doctest, faces(git), offline doc(git), runscad.py(2,git), editor of choice: CudaText ( OpenSCAD lexer); $ Tips; $ Snippets
12