Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
TextMate support for HTML, with support for folding PHP arrays, like we have for other data structures in code. Designed to make PHP arrays more readable.
Ruby
branch: master

This branch is 6 commits ahead, 50 commits behind textmate:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Commands
DragCommands
Macros
Preferences
Snippets
Support
Syntaxes
Templates
info.plist
readme.md

readme.md

This is a quick fork of the HTML bundle on that comes with Textmate, to allow php array structures to be folded like other container objects in Textmate.

This brings PHP arrays inline with javascript object literals, or arrays in other languages.

These are in the html bundle, because PHP syntax is actually evaluated in this bundle, when dealing with files that use both kinds of markup

How this works

PHP array declarations like below, as long as they end with a comma, and start and end on the same text column like below should now be foldable, with (by default) the F1 key.

Foldable:

    <?php
            array(
                //code inside this

            ),
    ?>

Not Foldable:

    <?php
            array(
                //code inside this

                ),
    ?>

    <?php
            array(
                //code inside this

        ),
    ?>

How to install

First of all jump to your Bundles directory:

    cd ~/Library/Application Support/TextMate/Bundles/

Then remove the existing bundle

    rm -rf HTML.tmbundle

Then clone this one in:

    git clone git://github.com/chris-d-adams/html.tmbundle.git HTML.tmbundle
Something went wrong with that request. Please try again.