抓了一個好用的外掛 

Enlighter – Customizable Syntax Highlighter

可以快速的插入程式碼的工具。

也有滿視覺化的插入方式可以使用。

上方可選擇外觀型態 再來要選是程式區塊

最後輸入程式碼就好了。

下面是memo的範例

                                               //add the same discount
						if ($discount > 0) {							
								$discount_total += $discount;
								}
						}
							if ($discount > 0) {
								if(substr(VERSION,0,3)>='3.0' || substr(VERSION,0,3)=='2.3' || substr(VERSION,0,3)=='2.2') {
									$total['totals'][] = array(
										'code'       => 'bganycombitotal',
										'title'      => $discount_totalarray['title'],
										'value'      => -($discount_total),
										'sort_order' => $discount_totalarray['sort_order']
									);
				
									$total['total'] -= ($discount_total);
								}
							}

 

Hits: 5