Syntax Highlighting

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

Syntax Highlighting

mail.aroessler
Hello OpenSCAD developers,

First of all, I really like your application. However, as I am a guy of
eyecandy, it lacks the feature of syntax highlighting for me. I have seen that
the GUI is developed in Qt. As I am Qt developer myself, I know how easy it is
to create a syntax highlighter. (One of my applications: http://kde-
apps.org/content/show.php/PhyxCalc?content=149161)
If you are interested send me a list of the keywords, function names, etc. So
I can just implement it.

Best Regards
Alexander Rössler

Reply | Threaded
Open this post in threaded view
|

Re: Syntax Highlighting

Christopher Olah
This is the most comprehensive list of OpenSCAD keywords, etc, I am
aware of: http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Command_Glossary

I implemented syntax highlighting two years ago along with a bunch of
other goodies (it wasn't merged, unfortunately). Obviously, I think
this would be really good to see in OpenSCAD!

Chris

On Fri, Dec 28, 2012 at 5:06 AM, Alexander Rössler
<[hidden email]> wrote:

> Hello OpenSCAD developers,
>
> First of all, I really like your application. However, as I am a guy of
> eyecandy, it lacks the feature of syntax highlighting for me. I have seen that
> the GUI is developed in Qt. As I am Qt developer myself, I know how easy it is
> to create a syntax highlighter. (One of my applications: http://kde-
> apps.org/content/show.php/PhyxCalc?content=149161)
> If you are interested send me a list of the keywords, function names, etc. So
> I can just implement it.
>
> Best Regards
> Alexander Rössler
> _______________________________________________
> 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: Syntax Highlighting

Peter Uithoven
The cheatsheet might also be interesting. 

I see for example that the command glossary isn't up to date, the linear_extrude and rotate_extrude still have a file parameter and I think that's not the case anymore in the actual program. 

Best regards, 
Peter Uithoven 


On Fri, Dec 28, 2012 at 1:05 PM, Christopher Olah <[hidden email]> wrote:
This is the most comprehensive list of OpenSCAD keywords, etc, I am
aware of: http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Command_Glossary

I implemented syntax highlighting two years ago along with a bunch of
other goodies (it wasn't merged, unfortunately). Obviously, I think
this would be really good to see in OpenSCAD!

Chris

On Fri, Dec 28, 2012 at 5:06 AM, Alexander Rössler
<[hidden email]> wrote:
> Hello OpenSCAD developers,
>
> First of all, I really like your application. However, as I am a guy of
> eyecandy, it lacks the feature of syntax highlighting for me. I have seen that
> the GUI is developed in Qt. As I am Qt developer myself, I know how easy it is
> to create a syntax highlighter. (One of my applications: http://kde-
> apps.org/content/show.php/PhyxCalc?content=149161)
> If you are interested send me a list of the keywords, function names, etc. So
> I can just implement it.
>
> Best Regards
> Alexander Rössler
> _______________________________________________
> 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: Syntax Highlighting

Giles Bathgate-2
In reply to this post by Christopher Olah

There is already an implementation merged using qcodeeditor aswell. It's disabled in the qmake file though.

Regards

Giles

Reply | Threaded
Open this post in threaded view
|

Re: Syntax Highlighting

Peter Falke
We may have to think about weather the Glossary in the manual is still needed.

I believe it was made with the same idea as the cheatsheet, but it was never really updated properly.

In my opinion it should be deleted and the cheatsheet inserted instead.

Sincerly,


TakeItAndRun



On 29 December 2012 13:54, Giles Bathgate <[hidden email]> wrote:

There is already an implementation merged using qcodeeditor aswell. It's disabled in the qmake file though.

Regards

Giles


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



--
[hidden email]

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.

Enjoy!
Reply | Threaded
Open this post in threaded view
|

Re: Syntax Highlighting

Kevin Crowley
The command glossary is how i get to the right page in the manual.  The index is useless.  The cheat sheet may be the way to go to replace both.

On Sat, Dec 29, 2012 at 2:46 PM, Peter Falke <[hidden email]> wrote:
We may have to think about weather the Glossary in the manual is still needed.

I believe it was made with the same idea as the cheatsheet, but it was never really updated properly.

In my opinion it should be deleted and the cheatsheet inserted instead.

Sincerly,


TakeItAndRun



On 29 December 2012 13:54, Giles Bathgate <[hidden email]> wrote:

There is already an implementation merged using qcodeeditor aswell. It's disabled in the qmake file though.

Regards

Giles


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



--
[hidden email]

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.

Enjoy!

_______________________________________________
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
|

Glossary/Command Summary/CheatSheet

Michael Möller
In reply to this post by Peter Falke
There are pro&cons for both:

The cheatsheet is shorter, but it, too, will require keeping up-to-date.
It is brandnew now, and an enthusiastic author. If/when he drops behind,
I for one do not fancy getting into GitHub forks and pullrequests to
update it, when a perfectly usable tool, the Wiki exists (and I have
learned to edit). Thus my "vote" would be to keep documentation in one
place.

The Cheatsheet is more free in the formatting, as it is not "limited" by
wiki markup. The Cheatsheet omits more details (like the arguments for
atan2 and all functions) A cheatsheet constrains itself to one sheet
(well, arbitrary in an HTML world, but it should be one sheet on
printout). It's purpose is a memory jogger.

The Command summary/glossary/QuickRef could  have the layout changed so
it gets shorter. Items can link to the full description. It's purpose is
the pure syntax.

I'd prefer the Cheatsheet to be integrated into a hotkey popup display
in the IDE (oh, well, that brings us almost full circle back to the
syntax highlight and/or keyword auto-completion discussion).

I think the heading "Command Glossary" is bad - Quick Reference would be
better (I've put that into the wiki discussion).

Kind regards,
MSquare

(By The Way - precisely which bits are not "updated properly"?)


 From an earlier thread on SyntaxHighlighting 29-12-2012 21:46, Peter
Falke wote

> We may have to think about weather the Glossary in the manual is still
> needed.
>
> I believe it was made with the same idea as the cheatsheet, but it was
> never really updated properly.
>
> In my opinion it should be deleted and the cheatsheet inserted instead.
>
> Sincerly,
>
>
> TakeItAndRun


Reply | Threaded
Open this post in threaded view
|

Re: Syntax Highlighting

Peter Uithoven
In reply to this post by Kevin Crowley
Indeed, if we add anchors in the manual's we could link the commands in the cheat sheet to the manual. 

Peter 


On Sat, Dec 29, 2012 at 10:30 PM, Kevin Crowley <[hidden email]> wrote:
The command glossary is how i get to the right page in the manual.  The index is useless.  The cheat sheet may be the way to go to replace both.


On Sat, Dec 29, 2012 at 2:46 PM, Peter Falke <[hidden email]> wrote:
We may have to think about weather the Glossary in the manual is still needed.

I believe it was made with the same idea as the cheatsheet, but it was never really updated properly.

In my opinion it should be deleted and the cheatsheet inserted instead.

Sincerly,


TakeItAndRun



On 29 December 2012 13:54, Giles Bathgate <[hidden email]> wrote:

There is already an implementation merged using qcodeeditor aswell. It's disabled in the qmake file though.

Regards

Giles


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



--
[hidden email]

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.

Enjoy!

_______________________________________________
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