ソースをカラー表示させる「Syntax Highlighter」をBloggerのガジェットに追加した。
「クリボウの Blogger Tips」
「ASCII.JP」
備忘録
ソースの前後にpreタグを追加する
preの属性nameにcode、 classにjavaやxmlを指定することでカラー表示がされる。
- <!--xml version="1.0" encoding="utf-8"?-->
- <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" <brbr=""> xmlns:cc="http://schemas.android.com/apk/res/com.google.sites.site.sakaneya"
- android:orientation="vertical"
- android:id="@+id/MainPanel"
- android:layout_width="fill_parent" android:layout_height="fill_parent"
- android:background="@color/background"
- android:configChanges="orientation|keyboardHidden"
- >
- <com.google.sites.site.sakaneya.widget.timerwidget
- android:id="@+id/timer0"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- cc:title="@string/Title_Hotcake1"
- cc:CounterTextSize= "72.0"
- cc:MSTextSize= "20.0"
- />
- </com.google.sites.site.sakaneya.widget.timerwidget
- </linearlayout>
0 件のコメント:
コメントを投稿