Flash Editor & Viewer updated

New editor & viewer now available!
Here is a short list of new features

* Displaying only visible buffers. (This is significant especially for viewing & editing long codes.)
* Substituting TextField with Flash Player 10's text rendering engine to deal with multibyte unicode characters.
* Compatible with Flash Player 10.1's IME(Input Method Editor) API. The inline IME is available on Windows machines.
* UI improvements.


--- About the code assistant feature

Now going to talk about the logic of filtering code completion candidates.
This would be helpful to make best use of the code assistant feature.
The following regular expression is used to filter candidates :

(new RegExp('^' + input.split('').join('.*'), 'i')).test(candidate);

If you type 'mvc', MovieClip will listed as candidates.
You can show code completion menu by pressing Ctrl + Space.
Typing Ctrl + Space after ade, addEventListener will be listed in the menu.
Ctrl + n & Ctrl + p is available besides up & down keys to select a candidate from the menu.
(This is not the case for the browsers like IE which do not send these key events to Flash Player.)
Esc key kills the menu.


--- Lists of new UI features

* Double click selects the word.
* Tripple click selects the line.
* Selecting line numbers selects the corresponding range in the text.
* Some key binds (http://github.com/mash/WonderflEditor/blob/master/src/net/wonderfl/editor/manager/EditorHotkeyManager.as#L56)


--- Experimental feature

Not well-tested but still effective.

* Goto the definition. (F4)
* Search word at cursor from buffer. (F3, Shift F3)


--- Source codes

The source codes of WonderflEditor & WonderflViewer are available under GPL license at github.(http://github.com/mash/WonderflEditor)


----------------------


新エディタ&ビューワ使えるようになりました!

新機能についていくつか

* 見えているバッファのみの表示 (特に長いコードでの表示・編集で重要な機能です)
* ユニコードのマルチバイト文字(日本語等)を正しく扱うために、TextFieldをFlash Player 10のテキストレンダリングAPIで置き換えました。
* Flash Player 10.1のIME APIにも対応しました。Windows マシンではインラインのIMEを使うことができます。
* UIの向上

コード補完機能について

ここでは、コード補完の候補を絞り込むロジックについて説明します。コード補完機能を最大限に活用するために役立つかもしれません。
候補の絞り込みは以下のような正規表現が使われています

(new RegExp('^' + 入力.split('').join('.*'), 'i')).test(候補);

例えば、'mvc'と打てば、MovieClipが候補として挙げられます。
Ctrl + Spaceでコード補完のメニューを出すことができます。
adeのあとにCtrl + Spaceと打つと、addEventListener がメニューに挙がります。
メニューから候補を選択するには、上下キー以外にもCtrl + n, Ctrl + pが使えます。
(IEのようなこれらのキーイベントをFlash Playerに送らないようなブラウザでは使えません)
Escでメニューを消すことができます。


新しいUIの機能リスト

* ダブルクリックで単語選択
* トリプルクリックで行選択
* 行番号選択で対応行の選択
* いくつかのキーバインド (http://github.com/mash/WonderflEditor/blob/master/src/net/wonderfl/editor/manager/EditorHotkeyManager.as#L56)

実験的機能

十分にはテストされていないが、使える機能

* 定義へジャンプ (F4)
* カーソル位置にある単語の検索 (F3, Shift F3)

ソースコード

エディタとビューワはgithubにてGPLライセンスのもと入手できます。(http://github.com/mash/WonderflEditor)