Page 1 of 1

ZgeSublime

Posted: Wed Jun 04, 2025 6:43 am
by Ats
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
  1. Download ZgeSublime from: https://github.com/Txori/ZgeSublime
  2. In Sublime Text, go to Preferences > Browse Packages...
  3. 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.

Re: ZgeSublime

Posted: Wed Jun 04, 2025 7:22 am
by VilleK
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.

Re: ZgeSublime

Posted: Tue Jun 10, 2025 10:12 am
by Ats
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.