ZgeSublime

Use of external libraries (DLLs) from ZGE.

Moderator: Moderators

Post Reply
User avatar
Ats
Posts: 820
Joined: Fri Sep 28, 2012 10:05 am
Contact:

ZgeSublime

Post 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.
User avatar
VilleK
Site Admin
Posts: 2382
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: ZgeSublime

Post 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.
User avatar
Ats
Posts: 820
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: ZgeSublime

Post 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.
Post Reply