1.GitHubでアカウント作成
https://github.com/
2.「New gist」ボタンを押します。
3.ファイル名を入力します。拡張子に応じてハイライトが変化します。
4.「Create public gist」ボタンを押します。
5.「<script ~」をコピーして、ブログに貼りつける。
出来上がり。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(var str='',i=0,L=3;i<L;i++){ | |
str += i | |
} | |
confirm(str) |
残念ながらwshはハイライトの恩恵が受けられないようです。。まぁ複数の言語が利用できる拡張子ですし、仕方がないですよね。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<job> | |
<script> | |
var str = 'Hello' | |
WScript.Echo(str) | |
var fs = new ActiveXObject('Scripting.FileSystemObject') | |
WScript.Echo(fs.getTempName()) | |
</script> | |
</job> |
0 件のコメント:
コメントを投稿