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

Active​4​D

by aparajita ST2/ST3

Sublime Text 3 support for Active4D

Details

  • 1.0.3
    2 1.0.2
  • github.​com
  • github.​com
  • 8 months ago
  • 1 hour ago
  • 6 years ago

Installs

  • Total 2K
  • Win 1K
  • OS X 377
  • Linux 148
May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5
Windows 4 0 3 4 0 1 1 1 1 1 0 3 2 1 0 1 5 2 0 2 1 0 1 1 1 3 2 0 3 0 5 1 4 1 2 1 2 2 1 1 2 4 4 0 2 3
OS X 0 0 1 0 2 1 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1
Linux 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Active4D-ST3

IMPORTANT: This package only supports Sublime Text 3 build 3100 and later.


Active4D-ST3 is a Sublime Text 3 package which provides syntax highlighting, snippets and convenience commands for use with Active4D.

Syntax Highlighting

Full syntax highlighting is provided for the following file types:

  • Embedded scripts (.a4d, .a4p) – Any Active4D code within <% %> tags receives context-aware syntax highlighting. Anything not within <% %> tags uses the standard highlighting for HTML files, including <script> and <style> blocks. Active4D methods and constants declared with 'define' are accessible through the 'Goto Symbol' palette.

  • Libraries (.a4l) – Context-aware syntax highlighting. Methods and constants declared with 'define' are accessible through the 'Goto Symbol' palette.

  • Active4D.ini – Syntax highlighting. Options are accessible through the 'Goto Symbol' palette.

Snippets

Numerous snippets are provided for control structures, commands, and fusedocs. The best way to explore the snippets is by showing the snippet list in ST3 (Tools > Snippets) from within Active4D code.

Commands

Several commands are available via keyboard equivalents:

  • Insert = block [super+shift+=] – Inserts the snippet <%= %>.

  • Build query [ctrl+alt+b] – If the beginning of the current selection is on a query/query selection command, a * is added if necessary to the query command and a snippet is inserted on the next line, with the table used in the previous line filled in as the default.

  • Open include [super+ctrl+alt+i] – If the cursor is within a string, the string is joined to the path of the current file's directory, and if the resulting path is a file, the file is opened. Typically this is used to open the target of an include statement.