-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a command to wrap Docblock comments at 80 chars (disabled by de…
…fault) Updated the PHPDoc Help command Added a Documentation for Tag command for PHPDoc info tags Updated menu structure git-svn-id: http://svn.textmate.org/trunk/Bundles/PHP.tmbundle@6651 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
- Loading branch information
Showing
5 changed files
with
105 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>beforeRunningCommand</key> | ||
<string>nop</string> | ||
<key>command</key> | ||
<string>if grep <<<${TM_CURRENT_WORD:-!} -Esq '[@a-zA-Z]+' | ||
then exit_show_html "<meta http-equiv='Refresh' content='0;URL=http://manual.phpdoc.org/HTMLframesConverter/earthli/phpDocumentor/tutorial_tags.${TM_CURRENT_WORD#@}.pkg.html'>" | ||
else echo "Nothing to lookup (hint: place the caret on a tag)" | ||
fi</string> | ||
<key>input</key> | ||
<string>none</string> | ||
<key>keyEquivalent</key> | ||
<string>^h</string> | ||
<key>name</key> | ||
<string>Documentation for Tag</string> | ||
<key>output</key> | ||
<string>showAsTooltip</string> | ||
<key>scope</key> | ||
<string>comment.block.documentation.phpdoc.php</string> | ||
<key>uuid</key> | ||
<string>42F50AE3-4F1C-43EB-9722-D80261A19625</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>beforeRunningCommand</key> | ||
<string>nop</string> | ||
<key>command</key> | ||
<string>#!/usr/bin/ruby | ||
col = ENV['TM_COLUMN_NUMBER'].to_i | ||
start_col = ENV['TM_CURRENT_LINE'].index('*') | ||
if col - start_col >= 80 | ||
puts | ||
print " " * start_col + "*" | ||
end | ||
print " "</string> | ||
<key>input</key> | ||
<string>none</string> | ||
<key>name</key> | ||
<string>Wrap Docblock at 80 Characters</string> | ||
<key>output</key> | ||
<string>afterSelectedText</string> | ||
<key>scope</key> | ||
<string>comment.block.documentation.phpdoc.php</string> | ||
<key>uuid</key> | ||
<string>6F7E7868-F5A2-4B7D-ACFB-2A8DE2CD04E2</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters