Use of external libraries (DLLs) from ZGE.
Moderator: Moderators
Ats
Posts: 820 Joined: Fri Sep 28, 2012 10:05 am
Contact:
Post
by Ats » Wed Jun 04, 2025 6:43 am
ZgeSublime is not an extension for ZGameEditor, but rather a
Sublime Text plugin I started to build and run .zgeproj files directly from the editor.
Installation
Download ZgeSublime from: https://github.com/Txori/ZgeSublime
In Sublime Text, go to Preferences > Browse Packages...
This opens the Packages folder. Clone or copy the ZgeSublime folder into it.
Configuration
Edit the ZgeSublime.sublime-settings file and set the path to your ZGameEditor.exe.
Default path: C:/Dropbox/System/ZGameEditor/ZGameEditor.exe
Usage
Open your .zgeproj file in Sublime Text.
Right-click in the editor to open the context menu and choose ZGameEditor:
Run project
This saves the file, then builds and runs your project.
You can also press Ctrl+Enter to run the same command.
Planned Features
Commands to auto-close or expand specific XML tags.
Open <Expression> blocks in external views for better clarity.
VilleK
Site Admin
Posts: 2382 Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:
Post
by VilleK » Wed Jun 04, 2025 7:22 am
Nice, thanks for sharing. I find I often edit zgeproj files directly in my favorite texteditor instead of inside ZGE so I can use the keyboard shortcuts I'm used to. Also it often makes sense to edit the whole project instead of just a single expression and even this can be done in the XML view in ZGE there are other editors that do this better.
Ats
Posts: 820 Joined: Fri Sep 28, 2012 10:05 am
Contact:
Post
by Ats » Tue Jun 10, 2025 10:12 am
I've added custom syntax highlighting to the plugin for better visualization of zgeproj files:
XML structure is styled similarly to PHP to de-emphasize markup
ZExpression sections (<Expression>, <WhileExp>, etc.) use C#-like coloring
Data sections (<BitmapFile>, <MeshData>) appear in grey for minimal visibility
I didn't handle the GLSL code yet. I think it will be simpler for the user to install that syntax, so I can use it in ZGameEditor syntax.