安装插件:找到 JsTool ,选中,然后点击Install按钮,自动下载安装,重启Notepad++
使用插件:在插件选项里面会多出一个JSTool选项,选择JSFormat就可以格式化对齐了!效果还不错。
<table border=0 cellpadding=0 cellspacing=0 align=center width=100%><tr>
<td height=25 align=right>
<script language="javascript" src="http://js.733.com/userdata/adv/2784-114.php"></script>
</td>
<td>
<script language="javascript" src="http://js.733.com/userdata/adv/2784-108.php"></script>
</td>
</tr>
</table>
<!doctype html><html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
div{
width:100px
height:100px
border:1px solid #000
text-align:left
}
</style>
</head>
<body>
<div id="div">52313</div>
<script>
(function(){
var o_div=document.getElementById("div")
o_div.style.textAlign="right"
})()
</script>
</body>
</html>