テストページ
投稿テスト
HTMLタグ例 : <pre class="prettyprint lang-***"> #include ... </pre>
lang-*** でコードの言語を指定できる。 (lang-c, lang-cs, lang-html, lang-js, ... )
注意点
C#
数式を $ または \[ と \] で囲むと適用される。
TeX Wiki : https://texwiki.texjp.org/
LaTeXコマンドシート一覧 : http://www002.upp.so-net.ne.jp/latex/index.html
π2=(∫∞0sinx√xdx)2=∞∑k=0(2k)!22k(k!)212k+1=∞∏k=14k24k2−1
Google Code Prettify
ソースコードの色付け(シンタックスハイライト)ができる。HTMLタグ例 : <pre class="prettyprint lang-***"> #include ... </pre>
lang-*** でコードの言語を指定できる。 (lang-c, lang-cs, lang-html, lang-js, ... )
注意点
- ソースコードを編集する際は「HTML」モードに切り替える。
通常の「作成」モードでpreタグの中身を編集すると表示が崩れる。 - タブ文字はスペース4個などに置き換える。
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TestScript : MonoBehaviour { void Awake() { // comment Debug.Log("Test $\pi$"); } }
MathJax
LATEX 記法を使って y=ax+b や limx→0sinxx=1 といった数式を書くことができる。数式を $ または \[ と \] で囲むと適用される。
TeX Wiki : https://texwiki.texjp.org/
LaTeXコマンドシート一覧 : http://www002.upp.so-net.ne.jp/latex/index.html
π2=(∫∞0sinx√xdx)2=∞∑k=0(2k)!22k(k!)212k+1=∞∏k=14k24k2−1
コメント
コメントを投稿