私はこれに対する答えをどこにも見つけることができませんでした。
内部 Wiki エントリに取り組んでいます。<source> タグ内に含めたいコードがあります。<source> タグは箇条書きの中にあるので、インデントします。
これが私の問題です。私のコードには複数の行が含まれており、コード例に改行を挿入したいと考えています。しかし、何らかの理由で、Wiki マークアップではこれを行うことができません。
キャリッジ リターンを挿入しようとすると、新しい行の <source> 書式が消えます。
<br /> タグを挿入しようとすると、タグが実際に表示されます。それはラインを壊しません!
これまでのところ、私が見つけた唯一の回避策は次のようなものです-これは私が望んでいるものではありません!!!
:<source lang="sql">select * from table1</source>
:<source lang="sql">select * from table2</source>
いいえ!!! 私が欲しいのは次のようなものです:
:<source lang="sql">select * from table1
select * from table2</source>
--note the line break for the second SELECT statement!
--also note the ':' that indicates that I want it indented!
--when I try it this way, the <source> formatting for the second line disappears!
--I also tried adding the ':' to the second line -- that doesn't work, either!
私もこれを試しましたが、うまくいきません!
:<source lang="sql">select * from table1<br />select * from table2</source>
--when I try this, the <br /> tag actually shows up; it does NOT break the line!
つまり、インデントされた同じ <source> タグ内に両方の個々の行が表示されるようにします。
これを機能させるにはどうすればよいですか?