Design forum
cancel
Showing results for 
Search instead for 
Did you mean: 

GDL Syntax HighLight wit NotePad++

dinnye
Newcomer
[Moderator note: for some reason the message associated with this post simply said 'banned'. I opened the attached zip file and it seems to contain an XML description of the GDL language for Notepad++ which can be downloaded here:
http://notepad-plus.sourceforge.net/uk/site.htm

This is a Windows-only program.

I haven't taken the time to try it out myself yet though. Obviously, one would have to paste their GDL into Notepad++ to see the highlighting, but this could still be a great help in tracking down problems. Perhaps the original poster would post a screenshot of some color-coded text. --Karl]
ArchiCAD user since 1994y
>ArchiCAD
>Cinema 4D
http://din3d.net/
12 REPLIES 12

dinnye
Newcomer
ScreenShot
notepad.png
ArchiCAD user since 1994y
>ArchiCAD
>Cinema 4D
http://din3d.net/

Erich
Newcomer
Now, if we could only get this with the internal GDL scripting environment...
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K

vistasp
Advocate
Must give this a try. Thank you dinnye.
Erich wrote:
Now, if we could only get this with the internal GDL scripting environment...
I'm sure it's not that difficult to implement syntax highlighting and line-numbering.

GS, if you can't give us a sophisticated tool to work with GDL, can we at least have something as basic as this?
= v i s t a s p =
bT Square Peg
https://archicadstuff.blogspot.com
https://www.btsquarepeg.com
| AC 9-25 INT | Win10 | Ryzen 2600 | 16 GB | GTX 1150Ti |

Karl Ottenstein
Moderator
For Imperial users (USA, etc), the syntax highlighting is a little tougher - whether in Notepad++ or in XCode - because constants can be entered in the GDL editor using feet and inches (and often are for US parts), which are the same symbols used for delimiting text strings.

The simple logic of the syntax highlighting in Notepad++ and XCode will highlight delimited strings such as "hello" and 'hello' - but will fail when it encounters Imperial constants such as in
x=5'-0"
or
x=5' : y=10'
which has to be handled as a very special case. In the second example, a standard highlighter will treat ' : y=10' as a text string for highlighting purposes.

So, for both convenience - and for best color-coding including Imperial - the color coding should be offered via the GDL editor itself. 😉

Cheers,
Karl
One of the forum moderators   •   AC 25 USA and earlier   •   MacOS 11.6.1, iMac Pro

Olivier Dentan
Newcomer
Erich wrote:
Now, if we could only get this with the internal GDL scripting environment...
Sorry to cold your enthusiasm, I don't think this will happen.

GS answer is XML Editor, and believe me, I am not satisfied at all with that.
Since 20 years, if they didn't wrote such an environment, it is clear that they won't.
You can shout or cry, it leads nowhere.

Some users may remember of "Black Turtle"/(White Rabbit), and other attempts (3DNF scripter).
Not perfect, but pleasant. They worked both for Mac and Windows.

XML is hudge. This is not the correct answer.

Erich
Newcomer
Oliver,

No, not enthusiasm, just pie in the sky wishing.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K

Laszlo Nagy
Community Admin
Community Admin
If we never dream it, it will never happen.
So I dream.
....................................................................................................
Laszlo Nagy, Lead Moderator, Community Admin
Get Archicad Tips at https://twitter.com/laszlonagy
AMD Ryzen 1700X CPU, 48 GB RAM, NVidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), WIN10 PRO ENG, AC20-AC25
Loving Archicad since 1995

Djordje
Advocate
Also, if we keep quiet, it will never happen.

A wish for New Year 2009?
Djordje

ArchiCAD since 4.55 ... 1995

nideKer
Participant
Thanks dinnye it's nice addon for N++!

ouch, tomorrow 2014... We still have what we have in AC 17...

stefan
Booster
FWIW, I did pose the question to a GS representative at ArchiCAD Summer School in September this year, and there are no plans…

So (unless they have something under the hood), GDL editing is still doomed to occur in a non-syntax-colored, non-line-numbered, non-auto-completing mode.

Most Open Source software tools have this functionality. All commercial software developer systems have it. There are even complete Javascript and JQuery implementations to do this on a webpage, in a forum or whatever you use.

Please?
--- stefan boeykens --- architect-engineer-musician ---
ARCHICAD25/Revit2022/Rhino6/Unity2020/Solibri
MBP2019:i9Octo2.4GHz32GBVega20/BigSur+Win11
ARCHICAD-user since 1998

F_ Beister
Newcomer
Some users may remember of "Black Turtle"/(White Rabbit), and other attempts (3DNF scripter).
Not perfect, but pleasant. They worked both for Mac and Windows.
Yes I remember. It brought a lot of other problems.

It would be a first step, if AC would allow to open the source in an external editor like N++, which saves changes back to AC-IDE . A bit like the old Windows-DDE. I am shure GS will find an open source editor, which would offer an interface.

F_ Beister
Newcomer
I have made some tiny corrections: sorting the types of commands and added some new ones. Work with current version. Thanks for the basic file! Defining composed commands like "IF THEN " is still missing.
But very helpful for a quick look into a GDL file.

Didn't find the answer? Start a new discussion

Labels

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!