フォーチュンサモナーズ
«前の日記(2003-11-03) 最新 次の日記(2003-11-05)» 編集

Don'tStopMusic

2003|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|12|
2006|01|02|03|04|05|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|08|09|10|

カテゴリ別 2003年 | 2004年 | 2005年 | 2006年 | 2007年 | 2008年

知り合いサイト: よんだもの / 暴想 / Linuxでやる夫 / 新宿Vipper / 僕だけが幸せになればいいのに。


2003-11-04

_ [スクラップ] Mozilla 1.6 Alpha リリース このエントリーを含むブックマーク

Mozilla 1.6 Alpha Released
1.6a features many Mail & Newsgroups improvements
メーラ周りが強化されたようです。それと about:about とアドレス欄にいれると、about:* の一覧が見れるとか。

_ [ソフトウェア] EmEditor v4.0 beta8 このエントリーを含むブックマーク

2ch のスレにマクロがぽつぽつと上がってきています。
解き放てEmEditorユーザー その3 / 858
//InsertLineComment.jsee 選択範囲をコメント化します。
練習がてらこれをコメントレスにしてみました。ロジックは同じ、長さは 2 倍。
// commentRegion.jsee
function isSelected() {
	var mode = document.selection.Mode;
	if ((mode & eeModeMask) == eeModeNone){
		return false;
	}
	return true;
}
function getCommentStrMap() {
	var map = new Object();
	map['Bat']                     = "rem";
	map['C#']                      = "//";
	map['C++']                     = "//";
	map['Java']                    = "//";
	map['JavaScript']              = "//";
	map['JavaScript for EmEditor'] = "//";
	map['PHP']                     = "//";
	map['VBScript']                = "'";
	map['VBScript for EmEditor']   = "'";
	map['Perl']                    = "#";
	map['Python']                  = "#";
	map['Ruby']                    = "#";
	map['SQL']                     = "--";
	map['TeX']                     = "%";
	return map;
}
function getCommentStr() {
	var map = getCommentStrMap();
	var type = document.ConfigName;
	str = map[type];
	if (!str){
		str = "";
	}
	return str;
}
function getSelectedLineRegion(){
	var selection = Document.selection;
	var bottomPointX = selection.GetBottomPointX(eePosLogical);
	var topPointY = selection.GetTopPointY(eePosLogical);
	var bottomPointY = selection.GetBottomPointY(eePosLogical);
	if (bottomPointX < 2){
		bottomPointY--;
	}
	var ret = new Object();
	ret['top'] = topPointY;
	ret['bottom'] = bottomPointY;
	return ret;
}
function doCommentRegion(top, bottom, commentStr){
	for (var i = top; i <= bottom; i++){
		Document.selection.SetActivePoint(eePosLogical, 1, i); 
		Document.selection.Text = commentStr;
	}
}
function commentRegion(){
	if (!isSelected()){
		return;
	}
	var commentStr = getCommentStr();
	if (commentStr.length < 1){
		return;
	}
	var region = getSelectedLineRegion();
	var top = region['top'];
	var bottom = region['bottom'];
	doCommentRegion(top, bottom, commentStr);
}
commentRegion();
[]

最近のコメント:

  1. 直樹 (11-08)
  2. ブリーフ博士 (08-23)
  3. 原田篤 (07-22)

RSS
Creative Commons License
This work is licensed under a Creative Commons License
(note: text only. w/o web design, citations, (re)distributed softwares).