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
  • 5 months ago
  • 30 minutes ago
  • 5 years ago

Installs

  • Total 1K
  • Win 911
  • OS X 351
  • Linux 134
Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11
Windows 0 2 1 2 3 2 3 3 0 1 2 2 2 1 1 0 3 3 1 1 1 3 2 3 2 0 3 3 1 2 3 1 2 1 5 1 6 3 1 1 0 2 3 1 1 1
OS X 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0
Linux 0 0 0 1 0 0 0 1 0 2 0 0 0 0 0 0 4 0 1 0 0 0 1 1 1 0 0 0 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1

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.