Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab9e7fc
commit bfca6ea
Showing
4 changed files
with
255 additions
and
29 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
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,66 @@ | ||
# Zen Coding | ||
|
||
Flavours Symphony's textarea fields with an incredibly easy-to-use, CSS-like syntax for writing HTML, XML & XSLT code. | ||
|
||
- Version: 1.1 | ||
- Author: Simone Economo, my.ekoes@gmail.com | ||
- Build Date: 1st January 2010 | ||
- Requirements: Symphony CMS 2.0.x | ||
|
||
## Installation | ||
|
||
_Note_: The latest version can alway be grabbed with `git clone git://github.com/eKoeS/symphony-zencoding.git` | ||
|
||
1. Upload the `zencoding` folder in this archive to your Symphony `extensions` folder. | ||
2. Enable it by selecting the "Zen Coding", choose _Enable_ from the _with-selected_ menu, then click _Apply_. | ||
3. Greet a highly innovative and time-saving syntax to generate your markup at the speed of light (for more details see <http://code.google.com/p/zen-coding/>) | ||
_Note_: Zen Coding is only allowed inside textareas showing a "Zen Coding is enabled" message on the very right. Come on dude, you can't miss it. | ||
4. Go to System > Preferences to enable/disable "Zen Coding". | ||
|
||
## Features | ||
|
||
Includes [Zen Coding for <textarea>](http://zen-coding.ru/textarea/) v0.5 with: | ||
|
||
* XSLT Profile enabled | ||
* Tabs enabled (press `[Tab]` key to indent) | ||
* Formatted line breaks enabled (auto-indentation of lines when hitting `[Enter]` key) | ||
|
||
## Shortcuts | ||
|
||
Meta+E | ||
: Expand Abbreviation | ||
|
||
Meta+D | ||
: Balance Tag Outward | ||
|
||
Shift+Meta+D | ||
: Balance Tag Inward | ||
|
||
Shift+Meta+A | ||
: Wrap With Abbreviation | ||
|
||
Ctrl+Alt+→ | ||
: Next Edit Point | ||
|
||
Ctrl+Alt+← | ||
: Previous Edit Point | ||
|
||
Meta+L | ||
: Select Line | ||
|
||
## Resources & Further readings | ||
|
||
* [Zen Coding on Google Code](http://code.google.com/p/zen-coding/) | ||
* [Zen HTML elements](http://code.google.com/p/zen-coding/wiki/ZenHTMLElementsEn) | ||
* [Zen HTML selectors](http://code.google.com/p/zen-coding/wiki/ZenHTMLSelectorsEn) | ||
* [«Zen Coding: A Speedy Way To Write HTML/CSS Code», on Smashing Magazine](http://www.smashingmagazine.com/2009/11/21/zen-coding-a-new-way-to-write-html-code/) | ||
|
||
## Change log | ||
|
||
### Version 1.1, 1st January 2010: | ||
|
||
- New settings in your preferences will let you choose which textarea fields you want Zen Coding enabled in. | ||
|
||
### Version 1.0.0, 27th December 2009: | ||
|
||
- Initial release. |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
jQuery(document).ready(function(){ | ||
jQuery(".primary label:last").append("<i>Zen Coding enabled (<a href=\"http://code.google.com/p/zen-coding/\">?</a>)</i>"); | ||
jQuery(".primary label:last").append("<i>Zen Coding is enabled (<a href=\"http://code.google.com/p/zen-coding/\">?</a>)</i>"); | ||
jQuery("textarea").addClass("zc-use_tab-true zc-syntax-xsl zc-profile-xml"); | ||
}); |
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