どうも。
日曜プログラマです。






今回は前回の続きで
SFDC(Salesforce)で使用される言語であるApex/Visualfoceでも
livedoorブログのSyntaxHighlighterで対応させようという話。 







以下手順ですわ。
参考:http://www.anthonyvictorio.com/salesforce/syntax-highlighter/



1.http://www.anthonyvictorio.com/salesforce/syntax-highlighter/ に移動し
SyntaxHighlighter Evolved: Salesforce Apex & VisualForce Brushと書いてあるリンクを
いつも通りリンク先を保存する。




2. shBrushVisualForce.jsとshBrushApex.jsを前回の記事の「ファイル管理」にあるscriptフォルダにぶっこむ
  shThemeApexVf.cssはstyleフォルダにぶっこむ




3. 前回の記事で編集したヘッダにコードを追記して書く。頭痛が痛い。


 









4.試してみる!
書き方は以下の通り


・Apex <pre class="brush: apex"></pre> 
public class BuroguApex{
    
    //フィールド変数
    public String moji{get;set;}
    
    //コンストラクタ
    public BuroguApex(){
        this.moji = '表示される!';
    }
}




・Visualforce <pre class="brush: VisualForce"></pre>


    
    {!moji}






ひゃああああできたね
よかったよかった






                 ,,、-‐‐-、
                /:::::::::::::::::ヽ     ,、-‐‐-、
              /‐‐‐‐-:::::::::::|.   /:::::::::::::::::ヽ
             /   ,,,,      /  /‐‐‐‐-:::::::::::|
             /    /:::i    / ./  .,,,,     /
           /   /::::/    / ./   ./:::i     /
           /    /::::/   /./    /::::/    ./
           ,i、-‐-、l:::/    //    /::::/    /
         /    )     /    l:::/   /
        (_ _          、ー-、  /
.       // ゙゙゙  \_,,,、-(_,,,_(:::○::)/
       / ヽ、-‐-、          \`ー'\
.      !  /  iflllli       、-‐-、 ヽ  ヽ
      |  i  llllf l       iflllli、 ヽ.     |
      |    |lllll i       llllf l  |-‐   |
.     /    !lllll!'       |llll |  i    .i
     i  〃     O      !lllll!'      i     _________________
     |     、___            /   / 
.     !.    |  |_/ ̄ ̄ノ 〃.     /   <  怠けたい
      ヽ    \/:::::::::::::::/       /     \ 
       \   `ー--‐'´      _/         ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
         `'''‐、、_______,,,,、-‐"
        /  ヽ------'      \
.      //~'''''、___,,、‐、,___,、‐、,,,,,、-''''~~\
      / /:::::::/         |:::::::|     \