ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

GDL

by runxel ST2/ST3 Missing

A Sublime Text package for the programming language GDL (Geometric Description Language)

Details

Installs

  • Total 242
  • Win 147
  • OS X 70
  • Linux 25
Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6
Windows 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0
Linux 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

GDL-sublime

A bundle to make GDL available in Sublime Text.

Version

dark color scheme

What is GDL?

GDL means 'Geometric Description Language'. ArchiCAD uses it to define a library part.

Many ArchiCAD users are making their own library parts, sell them or even publish them for free on sites like BIMComponents, while others might modify the provided ones. But they are all tied to the – unfortunately horrible – build-in object editor which is stuck in the 80's or so. It doesn't even have line numbers!

But the rescue is here! (at least something like that)
The purpose of this package is to give you the chance to comfortably write code in the best editor of the galaxy – Sublime Text.

This package provides syntax highlighting with a well aligned color scheme (so the syntax highlighting can take it's glorious place) and also auto completion (can be forced by pressing ctrl + space).

Installation

Using Sublime Package Control

recommended
If you are using Sublime Package Control, you can easily install the bundle via the Sublime Text -> Preferences > Package Control: Install Package menu item.

Using Git

Alternatively you can install the bundle and keep up to date by cloning the repo directly into your Packages directory in the Sublime Text application settings area.

Go to your Sublime Text Packages directory and clone the repository using the command below:
git clone https://github.com/runxel/GDL-sublime "GDL"

Download Manually

not recommended – you won't get updates!
- Download the files using the GitHub .zip download option - Unzip the files and rename the folder to 'GDL' - Copy the folder to your Sublime Text Packages directory e.g. - Windows C:\Users\yourname\AppData\Roaming\Sublime Text 2\Packages\GDL - OS X: ~/Library/Application Support/Sublime Text 2/Packages/GDL

Usage

From now on you can select GDL as the current language in the bottom right corner of ST and enjoy all the benefits ST brings.
But wait! There's more! You should activate a color scheme (meaning proper highlighting) by modifying the syntax specific preferences file.
First set the syntax to GDL for the current file, then proceed to Preferences > Settings – Syntax Specific(or Preferences > Settings – More > Syntax Specific – User if youre using an older version of Sublime Text).

There are 2 different color schemes at choice: A dark and a light one. I muchly recommend the dark one for fatigue-proof coding. If you're more the traditional architect the light scheme might be your choice ;)

Copy one of these into the new file and save:

Dark:

{  
    "color_scheme": "Packages/GDL/GDL-dark.tmTheme"  
}

Light:

{  
    "color_scheme": "Packages/GDL/GDL-light.tmTheme"  
}

light color scheme

Don't like the theme?

Don't worry. Go to the ththeme-editor and select one of the two themes as start and make one which satisfies you! (Note that the theme-editor of course has no preview for gdl code, so it's just direct scope color editing.)
See the Wiki for a list with the scopes so you can refine the scheme to suit your needs.
Of course you could also edit the .thTheme files directly. Remember to copy and rename the provided one. Otherwise an update would overwrite your changes.

Auto completion + Snippets

You may have to force the auto completion via ctrl + space.
I have included some sample snippets. Try it out by typing in: comline and then press TAB ↹.
Voilá! There's a divider.
! ---------------------------------------------------------------------- !

I hardly encourage you to either modify the snippets, so they will suit your needs; or to make new ones. You will find all the shipped snippets in the “Snippets” folder.

Further usage

This Sublime Text package got accompanied by GDLnucleus (Not freeware). GDLnucleus is a assistant program which enables you to send your changes live to ArchiCAD from Sublime Text, instead of relying on copy+paste. It can be understood as a SublimeText-project handler integrated with a link to the LP_XMLConverter, which comes with ArchiCAD. See the page for more details. (Please note: I did not made GDLnucleus.)

Getting Started With Sublime Text

New to Sublime? Then I can recommend this excellent and free video tutorial by nettuts: Perfect Workflow in Sublime Text.

TO DO LIST