私はWordPressの初心者です。Code Prettifyプラグインの使用に失敗しました
私はWordpressのSparkling Themeにコードブロックを挿入しようとしています。 これは、エディタで私のコードです:
Following is a snippet of a sample Layout file.
<pre class="prettyprint">
<code class="xml">
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="This will print hello world" />
<!-- More GUI components go here -->
</LinearLayout>
</code></pre>
私が間違っているの場所を教えてください。おかげでアドバンス.. :)
私はWPエディタでそれをやっていますが、本当にPHPスクリプトを追加する必要がありますか? – Ashwani
いいえ、wpエディタにコードを挿入したいだけなら、PHPに触れる必要はありません。 – Cl0udSt0ne