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
  • 1 year ago
  • 1 hour ago
  • 6 years ago

Installs

  • Total 2K
  • Win 1K
  • OS X 407
  • Linux 171
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 Sep 5 Sep 4
Windows 1 2 3 2 1 1 2 0 0 1 2 2 0 1 1 0 2 1 1 3 1 1 1 0 1 0 3 2 0 1 2 0 1 0 1 2 3 2 5 0 5 4 1 4 1 1
OS X 0 0 0 0 0 1 1 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 2 1 0 1 0 0 0 0 0
Linux 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 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.