jEdit Community - Resources for users of the jEdit Text Editor
Need macro/plugin to trim trailing spaces on save
Submitted by neo_in_matrix on Thursday, 13 October, 2005 - 02:17
Is there any way to let jEdit trim trailing spaces on save?
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
qq
by hy263 on Tue, 29/08/2006 - 09:42
免费性电影 成人电影下载 性爱视频 偷拍图片 泳装美女 性感内衣 性爱贴图 性生活图片 作爱图片 性交电影 做爱电影 性福 人体摄影 裸女图片 乱伦图片 强暴电影 轮奸视频 迷奸图片 免费小电影 免费电影在线 免费影片 最新大片 免费电影下载 免费在线电影 看免费电影 免费电影网站 情色电影 激情视频下载 明星露点图片 激情写真 阴部图片 乳房图片 全裸美女 淫荡小说 淫乱小说 美女脱衣视频 裸体美女 手淫图片 波霸美女 淫水图片 阴户阴毛图片 美女图库 美女口交图片 韩国电影 性知识图片 最新电影 宽带电影 经典电影 恐怖电影 人体艺术 美女图片 美女走光 A片下载 毛片 偷窥图片 裸体视频聊天室 成人网站 成人论坛 性爱论坛 性变态图片 淫女 女大学生 美女下阴图 女性生殖器 操逼图片 激情论坛 两性生活 性教育片 两性知识 美腿图片 三级片 黄色电影 成人性爱电影 写真电影 美女阴部 美女乳房 强奸图片 裸体图片 美女自拍 色情图片 激情图片 激情小电影 性感图片 性交图片 做爱图片 黄色小说 成人小说 偷拍走光 美眉图片 人体写真 性虐待电影 写真集 激情电影 免费影院 日本av电影 美少女贴图 性感美女图片 美女写真 漂亮妹妹图片 同志电影 性交姿势 手机铃声制作 手机mp3下载 手机主题 如何制作手机铃声 真人原唱和弦铃声 qd铃声下载 经典铃声 联通手机彩铃 诺基亚手机铃声 小灵通铃声 移动手机铃声 手机动画 手机彩图 手机铃音 手机铃声论坛 搞笑手机铃声 个性铃声 dj铃声 唱得响亮铃声 手机铃声图片 高频铃声下载 手机铃声格式 搞怪铃声 比特铃声 自编铃声 adp铃声 七彩铃声 神奇铃声 最新铃声 另类铃声 短信铃声 来电铃声 音乐铃声 歌曲铃声 铃声试听 手机壁纸 彩色铃声 v3铃声下载 手机待机图片 免费手机图片 三星手机图片 经典铃声 最新手机铃声 戴尔笔记本报价 戴尔笔记本电脑价格 戴尔双核笔记本 戴尔电脑网站 戴尔家用电脑 戴尔电脑官方网站 戴尔台式机 戴尔网上订购 戴尔笔记本电脑网上订购 戴尔双核笔记本 戴尔服务器 戴尔电脑公司 戴尔电脑价格 戴尔台式电脑 戴尔手提电脑 戴尔中国 戴尔网站 戴尔笔记本官方网站 戴尔笔记本 戴尔笔记本电脑 dell笔记本电脑 双核笔记本电脑 戴尔笔记本电脑报价 戴尔电脑网上订购
trailing whitespaces the 2nd
by Robert Schwenn on Mon, 31/10/2005 - 17:41
The whitespace plugin includes just the option You're looking for.
automatic ...
by Robert Schwenn on Sun, 23/10/2005 - 10:39
Here's a second macro wich uses the internal action to remove trailing whitespaces:

//backup number of current line
CursorLine = textArea.getCaretLine();
//remove trailing whitespaces of all lines
textArea.selectAll();
textArea.removeTrailingWhiteSpace();
//deselect all, move caret to the line that was active before the macro started.
textArea.selectNone();
textArea.moveCaretPosition(textArea.getLineStartOffset(CursorLine));


To run the macro automatically at saving a buffer:
- install actionhooks plugin
- at plugin-options: add the macro to the actionlist of the event "Bufferupdate.Saving"
- don't forget to enable the actionhooks plugin
Sure...
by Skeeve on Thu, 13/10/2005 - 07:39
Save this as CleanSave.bsh or something:

SearchAndReplace.setSearchString("[^\\S\\n]+$");
SearchAndReplace.setReplaceString("");
SearchAndReplace.setBeanShellReplace(false);
SearchAndReplace.setIgnoreCase(true);
SearchAndReplace.setRegexp(true);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.replaceAll(view);
buffer.save(view,null,true);

Assign it to your prefferd shortcut or add it to the Right-Click Menu and there you go...
User login
Browse archives
« March 2024  
MoTuWeThFrSaSu
 
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
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82338
Context Free Art (*.cfdg)   0.31   46043
JBuilder scheme   .001   18487
BBEdit scheme   1.0   18108
ColdFusion scheme   1.0   18015
R Edit Mode - extensive version   0.1   17461
Advanced HTML edit mode   1.0   16194
Matlab Edit Mode   1.0   16057
jEdit XP icons   1.0   15220
XP icons for jEdit   1.1   14282