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

Active​4​D

by aparajita ALL

Sublime Text 3 support for Active4D

Details

  • 1.0.3
    1.0.2
  • github.​com
  • github.​com
  • 7 years ago
  • 4 years ago
  • 12 years ago

Installs

  • Total 3K
  • Win 2K
  • Mac 560
  • Linux 290
Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12
Windows 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 2 0 0 0 0 1 1 0
Mac 0 1 1 1 0 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 0 2 0 1 0 1 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 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.