text-editor

Alternative to TextPad's Prompt to Reload File

微笑、不失礼 提交于 2019-12-09 15:20:19
问题 I have been using TextPad for years and I am happy with it except for one issue. I use it to monitor log files that are updated in near real time. Every time the log file is updated TextPad prompts me to reload it. Essentially I want to force the yes button at all times and never see the prompt. I submitted a change request at their site, but I was wondering if there were any alternatives to TextPad that would allow me to see the file loading in real time with out a prompt to reload it. 回答1:

Snippets vs. Abbreviations in Vim

陌路散爱 提交于 2019-12-09 12:58:10
问题 What advantages and/or disadvantages are there to using a "snippets" plugin, e.g. snipmate, ultisnips, for VIM as opposed to simply using the builtin "abbreviations" functionality? Are there specific use-cases where declaring iabbr , cabbr , etc. lack some major features that the snippets plugins provide? I've been unsuccessful in finding a thorough comparison between these two "features" and their respective implementations. As @peter-rincker pointed out in a comment: It should be noted that

Intellij like Text Editor

亡梦爱人 提交于 2019-12-09 08:08:59
问题 I am Intellij user and get really used to it and especially it's keymap (all kinds of goodies for text: ctrl+w, alt+mouseDrag...). What I am looking for now is text editor for programming that would be familiar to Intellij way of work (in some sense). In ideal world, I would like to get similar keymap by default or have it as a plugin. Second best thing would be having keymap to be "very compatible" with Intellij when I set keymap manually. What I mean by that is that, often, its best to

Which editors out of Emacs, Vim and JEdit support multiple simultaneous text insertion points?

半世苍凉 提交于 2019-12-09 07:50:18
问题 Background: JEdit (and some other text editors as well) support a feature called Multiple simultaneous text insertion points. (at least that's what I'm calling it here). To understand what this means, take a look at the link. Out of all the features in use in modern text editors, initial research seems to indicate that this is one feature that both Emacs and Vim do not actually support. If correct, this would be pretty exceptional since it's quite difficult to find a text editor feature that

Why do Netbeans, Aptana Studio and Komodo Edit all not save in UTF-8?

痴心易碎 提交于 2019-12-08 20:44:28
I'm getting back into development and want to find a good editor for HTML5/JQuery. Being able to save files in UTF-8 is important. However, although I set my project in NetBeans 7.0 to encode in UTF-8, when I create a file in the project, then look at it in Notepad++, the file is encoded in ANSI and I have to manually set the encoding to UTF-8: In Aptana Studio 3 I set the workspace to UTF-8 encoding, and my project inherits from that, but when I create a file in the project and look at it in Notepad++, it is encoded in ANSI and I have to change the encoding manually to UTF-8: So I tried

Is there a text editor that will “pretty print” for display without changing the underlying text?

依然范特西╮ 提交于 2019-12-08 14:16:27
There are two competing requirements 1) I want to pretty print so that I can read and understand code written by my peers 2) I don't want to check in the pretty printed code to source control because... It might not meet the coding standard where I work When reviewing history in source control, formatting changes obscure the 'real' changes. For discussion of problems checking in formatting changes, see this other stackoverflow question Committing when changing source formatting? At the same time, I still need to be able to edit the file and save changes. I want to be able to edit the ugly text

Emacs replace regexp with incremental sequence

大憨熊 提交于 2019-12-08 07:46:38
问题 I am trying to figure out a way to replace a string in a text file by a number that increments by more than 1. I am trying to turn a couple of lines like this: result_A_in_S1-S2.txt result_A_in_S1-S2.txt result_A_in_S1-S2.txt result_A_in_S1-S2.txt Into something that scales up sequentially for S1 and S2 . result_A_in_1000-1003.txt result_A_in_1004-1007.txt result_A_in_1008-1011.txt result_A_in_1012-1015.txt I want to know if I can define a string with replace regexp and then have that string

Why do Netbeans, Aptana Studio and Komodo Edit all not save in UTF-8?

岁酱吖の 提交于 2019-12-08 04:54:55
问题 I'm getting back into development and want to find a good editor for HTML5/JQuery. Being able to save files in UTF-8 is important. However, although I set my project in NetBeans 7.0 to encode in UTF-8, when I create a file in the project, then look at it in Notepad++, the file is encoded in ANSI and I have to manually set the encoding to UTF-8: In Aptana Studio 3 I set the workspace to UTF-8 encoding, and my project inherits from that, but when I create a file in the project and look at it in

How to prevent horizontal scrolling of MCE editor

半腔热情 提交于 2019-12-07 09:08:54
问题 I am using TinyMCE text editor and the text within the does not roll over when the line goes beyond the width, rather a scroll bar appears and the text goes on horizontally. How can I confine the text withing the text box width and not have a horizontal scroll bar. 回答1: .tinymce-content { white-space: normal; } This sounds like a CSS issue. Can you provide a working example or demo URL? It sounds like the text is not wrapping to its container. Also, text won't wrap unless it contains spaces

Change specific String attributes in StyledDocument

爷,独闯天下 提交于 2019-12-07 08:16:53
问题 I am trying to create a text editor. I am using a JTextPane with a StyledDocument. What I am trying to implement is a way to change the attributes of selected text. This works in the following way : the user inputs the desired text. Afterwards, he can change any String's attributes (Font family, font size, whether it is bold/italic or not) by selecting it and pressing a button, where by means of checkboxes and dropdown lists would select the desired changes. Is it possible for me to change