|
|
日時: 2008/05/19 18:10
名前: lightbox
|
以下記述方法(vb をサンプルにしています)
#include_js(http://自分のアクセスできる場所/shCore.js)
#include_js(http://自分のアクセスできる場所/shBrushVb.js)
#html2(){{
<textarea name="code" class="vb">
Public Class Form1
Dim obj As New Microsoft.Office.Interop.Excel.ApplicationClass
Dim books As Microsoft.Office.Interop.Excel.Workbooks
Dim book As Microsoft.Office.Interop.Excel.Workbook
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
books = obj.Workbooks
book = books.Open("C:\user\book1.xls")
obj.Visible = True
End Sub
End Class
</textarea>
}}
#javascript(){{
dp.SyntaxHighlighter.ClipboardSwf = '/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
}}
↓SyntaxHighlighter で使用できる言語
Language
|
Aliases |
| C++ |
cpp, c, c++ |
| C# |
c#, c-sharp, csharp |
| CSS |
css |
| Delphi |
delphi, pascal |
| Java |
java |
| Java Script |
js, jscript, javascript |
| PHP |
php |
| Python |
py, python |
| Ruby |
rb, ruby, rails, ror |
| Sql |
sql |
| VB |
vb, vb.net |
| XML/HTML |
xml, html, xhtml, xslt |
|