チェンジセット 975

差分発生行の前後
無視リスト:
コミット日時:
2008/08/15 11:09:24 (3 年前)
コミッタ:
kujirahand
ログメッセージ:

SourceCodeViewer? コンポーネントのサンプルとして、「唐辛子」(http://kujirahand.com/tools/tougarasi/)を追加

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/KujiraFlexCompo/SourceCodeViewer/ReadMe.txt

    r880 r975  
    1 [�T�v] �\�[�X�R�[�h(XML/Flex/JavaScript/Basic/PHP/CSS)�̃\�[�X�R�[�h������\���������|�[�l���g 
     1[�T�v] �\�[�X�R�[�h(XML/Flex/JavaScript/Basic/PHP/CSS/Ruby)�̃\�[�X�R�[�h������\���������|�[�l���g 
    22[�g�����C�u�����p�X��SourceCodeViewer.swc �������AFlex Builder �̃f�U�C���r���[�Ŕz�u�ł������ɂȂ����B 
    33[��] �N�W�����ttp://kujirahand.com/) 
    44[����] src �f�B���N�g���ɁASourceCodeViewer.swc �̃\�[�X�R�[�h���������B 
    55[�g����moSourceCodeViewer.mxml ��Ă��������BsourceType ��"css" ��basic" �̂悤�Ɍ����w�肵�AsourceText �Ƀ\�[�X�R�[�h��肷�邾���ł��B 
     6 
     7Tougarasi �v���W�F�N�g�������p�������܂��B 
     8 
  • as3/KujiraFlexCompo/SourceCodeViewer/src/com/kujirahand/controls/SourceCodeViewer.mxml

    r880 r975  
    1717                        'php':SParserPHP, 
    1818                        'xml':SParserXML, 
     19                        'ruby':SParserRuby, 
    1920                        'js':SParserJS, 'javascript':SParserJS, 
    2021                        'as':SParserJS, 'actionscript':SParserJS, 
  • as3/KujiraFlexCompo/SourceCodeViewer/src/com/kujirahand/tougarasi/SParser.as

    r880 r975  
    1414                public static const STYLE_STRING:String = "str"; 
    1515                public static const STYLE_NUMBER:String = "num"; 
     16                public static const STYLE_VARIABLE:String = "variable"; 
    1617                public static const STYLE_VALUE:String = "value"; 
    1718                public static const STYLE_TAG:String = "tag"; 
  • as3/KujiraFlexCompo/SourceCodeViewer/src/com/kujirahand/tougarasi/SParserPHP.as

    r880 r975  
    22{ 
    33        /** 
    4          * 作りかけ 
     4         * PHP のソースコード 
    55         */ 
    66        public class SParserPHP extends SParser 
  • as3/KujiraFlexCompo/SourceCodeViewer/src/com/kujirahand/tougarasi/SParserPHPScript.as

    r880 r975  
    1111                { 
    1212                        table = [ 
     13                                // php tag 
     14                                new SParserTableItem(/^\<\?(php|\=)/s, STYLE_TAG, null), 
     15                                new SParserTableItem(/^\?\>/s, STYLE_TAG, null), 
    1316                                // comment 
    1417                                new SParserTableItem(/^\/\*.*?\*\//s, STYLE_REM, null), 
     
    2124                                // word 
    2225                                new SParserTableItem(/^[\w\_][\w\d\_]*/, "", checkReserveWord), 
    23                                 new SParserTableItem(/^\$[\w\d\_]*/, STYLE_KEYWORD, null), 
     26                                new SParserTableItem(/^\$[\w\d\_]*/, STYLE_VARIABLE, null), 
    2427                        ]; 
    2528                        reserve_word = [