selatan のすべての投稿

syntaxhighlighter css test

CSS は

/* Website Title
---------------*/

div#header p.siteName {
    margin: 25px 60px 10px;
    line-height: 1;
    font-size: 144%;
    font-weight: bold;
    text-indent: -9999px;
    height: 58px;
    width: 285px;
    background: url(images/selatan.png) no-repeat left top;
}

div#header p.siteName a {
    text-decoration: none;
    color: #417698;
    display: block;
    height: 58px;
    width: 285px;
    overflow: hidden;
}

div#header p.siteName a:hover {
    color: #000;
}

div#header p.siteName a:focus {
    outline: none;
}

syntaxhighlighter php test

php はどうだろう。

<?php
$cwd = dirname(__FILE__);
$dir = mb_substr( $cwd, 0, mb_strrpos($cwd, 'wp-content'));

require_once($dir.'wp-config.php');

$config = get_option('vicuna_config');

if (!isset($config['skin'])) {
    $config['skin'] = 'style-vega';
    update_option('vicuna_config', $config);
}
$skin = $config['skin'];
header("Content-Type: text/css");
?>
@charset "utf-8";

@import url(<?php echo $skin; ?>/import.css);

syntaxhighlighter xml test

FadeEffectExamplea.mxml

<?xml version="1.0"?>
<!-- Example to demonstrate the Fade effect. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" percentWidth="100" percentHeight="100">
    <mx:Script>
    <![CDATA[
        import flash.text.Font;
        [Embed("assets/SF%20Planetary%20Orbiter.ttf", fontName="SF Planetary Orbiter")]
        public var myriad_font:Class;
        ]]>
    </mx:Script>
    
    <mx:Fade id="fadeOut" duration="3000" alphaFrom="1.0" alphaTo="0.0" target="{img3}" />
    <mx:Fade id="fadeIn" duration="3000" alphaFrom="0.0" alphaTo="1.0" target="{img3}" />

    <mx:Panel title="Fade Effect Example"  paddingTop="5" paddingLeft="10" paddingRight="10" paddingBottom="5"  layout="vertical">
        <mx:VBox horizontalAlign="center">
            <mx:Text text="LEMON" fontFamily="SF Planetary Orbiter" fontSize="32" color="blue" />
            <mx:Image id="img3" source="@Embed(source='mat/lemon200.jpg')" />
            <mx:HBox paddingTop="5">    
                <mx:Button id="btn2" label="Fade Out" click="fadeOut.play()" />
                <mx:Button id="btn1" label="Fade In" click="fadeIn.play()" />
             </mx:HBox>
        </mx:VBox>
    </mx:Panel>
</mx:Application>

アレマッ、 変換しちゃいけないんだ。

それにしても行番号はともあれ、属性くらいはもっと見やすい色でなくっちゃ。