text-editor

Good & Free Editor in Mac OS with highlighting and side-by-side editing/comparison [closed]

丶灬走出姿态 提交于 2019-12-04 08:17:47
Good & Free Editor in Mac OS with highlighting and side-by-side editing/comparison. I need it for: XML, C++ and PHP. Thanks in advance. MacVIM (or standard Unix VIM ) works well. It performs syntax highlighting for the above languages and will do side-by-side diffing . Zoran Regvart Check the answers given in What is a good C++ editor for Mac OS X? . Komodo Editor will also do comparisons, and it does support all above languages and more. TextWrangler is pretty good, you should give it a go. 来源: https://stackoverflow.com/questions/1963289/good-free-editor-in-mac-os-with-highlighting-and-side

How to divide the text into separate pages (like Google docs) in contenteditable?

▼魔方 西西 提交于 2019-12-04 07:58:46
I have been working on the creation of a specialized text editor running in the browser. I've got a question that has put me in a stupor. How to detect and divide long text into separate pages, as is done in Google docs? I know that google docs does not work through contenteditable, but there must be some solution... Edit1: We need to consider a few scenarios: We load a document by means of json object and then rendering our pages. We are typing the text and reached the end of the page. We delete the text. We insert or remove a piece of text. https://googleblog.blogspot.ru/2011/04/pagination

sublime text : open containing folder

。_饼干妹妹 提交于 2019-12-04 07:47:29
问题 I'm working on some file in my sublime text 2 editor, and I want to open a folder in which that file resides. I know there is a 2 step procedure to do this already step 1: right click and reveal in sidebar (ctrl+shift+r) step 2: right click on the same file in sidebar and click open containing folder. I would like to know if there is only one shortcut key to do the same. This is something that I use quite often. 回答1: You can add the line below to your Default (Windows).sublime-keymap : {

Will Emacs make me a better programmer? [closed]

三世轮回 提交于 2019-12-04 07:23:18
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Steve Yegge wrote a comment on his blog: All of the greatest engineers in the world use Emacs. The world-changer types. Not the great

Vim multiline editing like in sublimetext?

此生再无相见时 提交于 2019-12-04 07:20:56
问题 I started to use gvim, and I can't quite understand how the multiline edit works in gvim. For example: Original text: asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; ctrl+q, jjjjjj , $ everything is selected, then i press I to do a multiline insert. My intention is to insert quotes like in the first line, and then to press Esc: asd "asd asd" asd asd; asd asd asd asd asd; asd asd asd asd asd; asd

How to use sidebar with the keyboard in Sublime Text 2 and 3?

…衆ロ難τιáo~ 提交于 2019-12-04 07:20:51
问题 When using Sublime Text 2 we tend to open the side bar to navigate thru files/folders in our projects. For that we can use the hotkey ctrl+k ctrl+b (in windows). However, once we're in the side bar , we can't use it with keyboard (arrows for instance). We have to stick using it with our own mouse... Just a note : I installed SideBarEnhancements plugin, but I didn't find anything that could solve my problem. Any solution you might know? 回答1: You can type Ctrl + 0 ( Ctrl + Zero ) to focus on

TMemo max width

我与影子孤独终老i 提交于 2019-12-04 04:19:45
问题 Is there any way to make TMemo display text longer than 1024 into 1 line? Take a look this simple code: procedure TForm1.Button2Click(Sender: TObject); var s: string; i: integer; begin s := ''; for i := 0 to 10000 do s := s + 'a'; Memo1.Clear; Memo1.Lines.Add(s); end; The long text "s" will be displayed in multiple lines. The Memo1 will automatically wrap the text after 1024 characters. 回答1: A TMemo is a wrapper for a native multi line edit control and is subject to the limitations it has.

Text editor in Windows with real time update?

时光总嘲笑我的痴心妄想 提交于 2019-12-04 03:38:08
What's a good text editor in Windows that automatically updates the view whenever the opened file has been modified by another process? I need this to watch the output of my program. If you like using a mouse, Notepad++ is great If you're happier with the keyboard, for me, it has to be Emacs . Here's the download for Windows. To use the feature in Emacs, add the following to your .emacs: (global-auto-revert-mode t) There are lots of people at work who like Textpad but I don't understand why, it doesn't even have column editing. Notepad++ has this feature. If you want to reload automatically,

sort rows in 'VI' editor

喜夏-厌秋 提交于 2019-12-04 03:04:17
If i have to sort following rows on the basis of values on left of '='. But the sorting should expand the selection to column after '=' simultaneously. Thtz is we dnt have to sort column after '=' :: 50599=1000000 50454=00000054 50080=00005464 50098=00000875 50661=00000665 50788=10000035 50988=10000006 50994=10000656 57009=00000005 57022=10000008 57040=10000005 57000=10000005 57060=10000089 57067=10005640 57102=00000765 57190=00000867 This needs to be done in 'VI' editing the file. RESULT should be :: 50080=00005464 50098=00000875 ...etc. bjhaid This answer is coming 2 years late, but might

How do I get NERDCommenter to add comments in a particular column?

我只是一个虾纸丫 提交于 2019-12-04 00:57:35
问题 NERDCommenter works like this by default: //level1 //level2 //level3 How do I get to work like this? //level1 // level2 // level3 回答1: From the documentation: [count]<leader>cl [count]<leader>cb |NERDComAlignedComment| Same as |NERDComComment| except that the delimiters are aligned down the left side (cl) or both sides (cb). 回答2: It is possible to change the default behaviour of ToggleComment ( <leader>c<space> ) to use left alignment. However this means changing two lines in $vimfiles/bundle