Home > Zen Coding for Sakura Editor

Zen Coding for Sakura Editor

  • July 16, 2010 12:00 AM

It has been ported to expose some functionality is only to allow the editor at Sakura Zen Coding.

  • Setting method
    1. ZenCodingForSakuraEditor.zip download and unzip it.
      ZenCoding for Sakura Editor の 解凍
    2. Place the cherry in the macro editor folder ZenCoding.js.
      (In our example, create a folder called "macro" in the installation folder of cherry editor, has been copied to there.)
      サクラエディタのマクロフォルダにコピー
    3. Open> tab, select [macro] -> [(C) ... Common Settings] - [(O) Settings. (Open but Ctrl +6.)
      共通設定を開く
    4. Press the Browse button, set the macro folder.
      Reads the macro file "ZenCodeing.js" from the drop-down list in the [File].
      Enter the "ZenCoding" macro name to [name], and then press the [Settings].
      外部マクロに登録(設定前)
    5. And the changes will take effect, the macro "ZenCoding" was set to macro list will be displayed.
      外部マクロに登録(設定後)
    6. Open the tab to key assignment, select the "external macro" in the [(K) Type].
      Select will appear. "ZenCoding" to [(F) function.
      In other software I run is a key [Ctrl] + [E], assign the [Alt] + [Z] in the editor because Sakura have been assigned other functions already.
      Check the checkbox of the [Alt], select the "Alt + Z" from the [(Y) key, and then press the [(B) assignment].
      キーの割り当て(割付前)
    7. And the changes will take effect, the shortcut key "Alt + Z" was set to appear [(G) has been assigned function key.
      Then press the [OK], to complete the configuration.
      キーの割り当て(割付後)
  • How to use
    1. Now that you are ready to use in this, let us immediately to confirm the operation.
      To the Editor: Let's type "html 4s> div> ul> li * 3> a". 動作確認(実行前)
    2. When you are finished, please try to press that has been previously set the [Alt] + [Z] key.
      Once the deployment is successful statement is HTML.
      動作確認(実行後)
  • Related

Comments: 10

Masa February 28, 2011

Thank you for publishing useful macros!

Question is, do not know how to ZenCoding in the CSS.
Even then run with "@ i", will be executed as HTML "<@ i> </ @ i>" as.

To do the CSS ZenCoding Do I have to set somewhere?

March 10, 2011 yobane

Thank you for visiting.
First, as has been the behavior analysis is divided into the specification of HTML and CSS ZenCoding, HTML is not being deployed are deployed CSS if you switch the mode.
Switching this mode is basically to determine in the Style tag and the file extension, to macro cherry editor that currently provide because they do not have the processing cherry editor to determine CSS mode or HTML mode it is running in the HTML as the default analysis mode.
So, I think if you had written on one line as follows: Because the dynamically switching the mode, and will be deployed successfully, or does not work well?

<style type="text/css">@i</style> 

In addition, CSS will not be expanded As you've pointed out for running in HTML mode as described above, you can make. Css extension of the file, and then to the CSS editor mode of the cherry.
If you think you want it to be deployed in CSS, and If realized, it would be possible by some means such as modifying part of the macro mode switching.
(In other words, this part is in the current version is not supported as soon as balanced. Have time, let's examine.)
I think It should be noted that if you contact support so I think if it is been a rework, and you want to capture the fix.

June 3, 2011 maruta

When run in stand-alone JS, an error will appear,
does not respond to anything even if you run a macro in the sakura. .

Get that resolution is possible?

Could you contact me if there is any other necessary information.

Because they know and love sakura, by all means I want to use a macro here! !

June 10, 2011 yobane

Net development environment and in my machine seems to work without problems.
Please check that it has tentatively past versions available for download.
It survives as the information you want and enjoy the version information of OS, editor of the cherry.

June 11, 2011 lhankor_mhy

I was allowed to be used. It's great!

By the way, so that they are not deployed, seems to be hit with padding in the CSS.

June 17, 2011 White

Is likely to come in handy. Thank you for valuable macro! !
Since that did not work in older versions of one cherry tree editor, well when I went to install the latest version and try again!

However, html: Typing and 4s

Not only with, could not be expanded, such as document type declaration. What's the problem of setting here?

June 17, 2011 White

↑ self has been resolved.
It is does not work properly once, and do not want to save as html file. . Has been misread.
I am sorry in comments several times.

October 13, 2011 maru

I was allowed to use. Thank you.
However, do not work and you try to use in a state where indentation.
Why does not only work at the beginning of the line.
Thank you.

December 16, 2011 Arissa

You get used appreciate them!
Zencoding here is to wrap feature available?

yobane @ WebAdmin January 11, 2012

We are sorry for delayed answer.
wrap function have not been able to implement.
Future, the corresponding potential is there, I am afraid that I can not support in the near future.

Sorry, the comment form
Storing the information that you entered

Trackbacks: 0

TrackBack URL for this article
http://mwlab.net/zen-coding-for-sakuraeditor/trackback
TrackBack source list
Zen Coding for Sakura Editor - MoonWing than

Home > Zen Coding for Sakura Editor

Search
Feed
Translation
Japanese flagItalian flagKorean flagChinese (Simplified) flagChinese (Traditional) flagEnglish flagGerman flagFrench flagRussian flagVietnamese flagThai flag

Back to the top of the page