[添付ファイル一覧]
[全ページの添付ファイル一覧]
- UnIndent.js
- 格納ファイル名:attach/4D6163726F2FC5EAB9C62F323031_556E496E64656E742E6A73
- ページ:Macro/投稿/201
- 格納ファイル名:attach/4D6163726F2FC5EAB9C62F323031_556E496E64656E742E6A73
- MD5ハッシュ値:615aa53912c019ddf0dcdf22468d129b
- サイズ:1.8KB (1823 bytes)
- Content-type:application/octet-stream
- 登録日時:2011/10/30 21:06:29
- アクセス数:616
- MD5ハッシュ値:615aa53912c019ddf0dcdf22468d129b
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
| |
(function()
{
switch (Editor.IsTextSelected())
{
case 0: {
pos = parseInt(Editor.ExpandParameter('$x')) - 1;
lineOld = Editor.GetLineStr(0);
Editor.GoLineEnd();
Editor.GoLineTop_Sel();
if (Editor.IsTextSelected() != 0)
{
Editor.UnindentTab();
if (Editor.GetSelectLineFrom() == Editor.GetSelectLineTo())
{
Editor.GoLineEnd();
Editor.GoLineTop();
}
else
{
Editor.Up();
}
lineNow = Editor.GetLineStr(0);
pos -= lineOld.length - lineNow.length;
for (i = 0; i < pos; ++i)
{
Editor.Right();
}
}
}
break;
case 1: case 2: default:
Editor.UnindentTab();
break;
}
})();
|