Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

GDL Syntax HighLight wit NotePad++

Anonymous
Not applicable
[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]
12 REPLIES 12
Anonymous
Not applicable
ScreenShot
notepad.png
Erich
Contributor
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
Advisor
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-27 INT | Win11 | Ryzen 5700 | 32 GB | RTX 3050 |
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 27 USA and earlier   •   macOS Ventura 13.6.6, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
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
Contributor
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.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Djordje
Ace
Also, if we keep quiet, it will never happen.

A wish for New Year 2009?
Djordje



ArchiCAD since 4.55 ... 1995
HP Omen
nideKer
Contributor
Thanks dinnye it's nice addon for N++!

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

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!