text-editor

Will Emacs make me a better programmer? [closed]

孤人 提交于 2019-12-02 13:48:35
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 gal in the cube next to you. Not Fred, the amazing guy down the hall. I'm talking about the greatest software developers of our profession, the ones who changed the face of the industry. The James Goslings, the Donald Knuths, the Paul Grahams, the Jamie Zawinskis, the Eric Bensons. Real engineers use Emacs. You have to be way smart to use it well, and it makes you incredibly powerful if you can master it. Go look over Paul Nordstrom's shoulder while he works

How to paste text to end of every line? Sublime 2

余生颓废 提交于 2019-12-02 13:47:34
I'm curious if there is a way to paste text to the end of every line in Sublime 2? And conversely, to the beginning of every line. test line one test line two test line three test line four ... Say you have 100 lines of text in the editor, and you want to paste quotation marks to the beginning and end of each line. Is there an easy way to do this or a plugin that anyone would know of? This would often save me a lot of time on various projects. Thanks. You can use the Search & Replace feature with this regex ^([\w\d\_\.\s\-]*)$ to find text and the replaced text is "$1" . palaniraja Yeah Regex

Documentation for custom fonts and colors in Visual Studio environment options

為{幸葍}努か 提交于 2019-12-02 08:26:46
问题 The documentation on each display item in Visual Studio's Environment options for Fonts and Colors is lacking. There is a documentation page on msdn, but even this is incomplete (not all display items are listed), and contains limited descriptions. This makes it difficult for those that like to customize their code editor styling to understand which items they need to manipulate. The lack of a search function also further complicates things. The main question which would answer this question

What is a good javascript HTML editor for adding custom HTML elements?

戏子无情 提交于 2019-12-02 05:55:32
问题 I want to create a web-based WYSIWYG HTML editor that allows the user to insert pre-defined HTML elements with certain class or id attributes. For example, any HTML editor allows the user to select some text and click the 'bold' button, and this will wrap the selected text in <b></b> tags. I would like the user to be able to select some text, click a button called 'somebutton' and wrap the selected text in <div class="someclass"></div> , or click a different button and wrap the text in <h1 id

Edit control on stack overflow

大城市里の小女人 提交于 2019-12-02 04:33:58
问题 Is the edit control I'm typing in now, with all its buttons and rules freely available for use? My web project is also .Net based. 回答1: It's the WMD Markdown editor which is free and seems to be pretty easy to use. Just include the javascript for it and (in the easiest case), it just attaches to the first textarea it finds. Here's some info about the Perl implementation of Markdown which, according to the site, WMD is 100% compatible with. @Chris Upchurch Technically the current release isn't

Eclipse: Can you put your cursor on all lines?

五迷三道 提交于 2019-12-02 01:06:47
In IDEA you had the possibility to put your cursor on all lines. Is this possible in Eclipse? Eclipse 3.5 should have a column mode (which is what I think you're asking about) - use Alt+Shift+A : http://update.eclipse.org/downloads/drops/R-3.5-200906111540/eclipse-news-part1.html#Text I haven't tried this since I'm stuck at version 3.4.1 for the time being. There's a patch that claims to work for 3.4.0 ( http://tkilla.ch/column_mode/ ), but it's not working for my 3.4.1 install. VonC If you refer to the ability to select a group of lines (like a all function), you can use the outline view alt

JSLint throwing error when using console.log() [duplicate]

给你一囗甜甜゛ 提交于 2019-12-01 20:11:49
This question already has an answer here: JSLint: was used before it was defined 2 answers The text editor that I am using is Brackets . I am encountering an error message when I try to use console.log in any JS file. 1 - Create/Open an JS file 2 - Type console.log('hello world'); 3 - Save the file JSLint Problem: error message in JSLint 'console' was used before it was defined. Use the devel option: true if browser globals that are useful in development should be predefined, and if debugger statements and TODO comments should be allowed. It adds the same globals as this directive: /*global

JSLint throwing error when using console.log() [duplicate]

天涯浪子 提交于 2019-12-01 19:37:38
问题 This question already has answers here : JSLint: was used before it was defined (2 answers) Closed 3 years ago . The text editor that I am using is Brackets. I am encountering an error message when I try to use console.log in any JS file. 1 - Create/Open an JS file 2 - Type console.log('hello world'); 3 - Save the file JSLint Problem: error message in JSLint 'console' was used before it was defined. 回答1: Use the devel option: true if browser globals that are useful in development should be

Vim: toggle highlighting of long lines

狂风中的少年 提交于 2019-12-01 17:37:22
In my .vimrc, I have: :au BufWinEnter * let w:m1=matchadd('Search', '\%>80v.\+', -1) to highlight lines that stray over the 80 character limit. How can I set it so that this is toggled on/off by pressing a function key? Use mappings. To activate highlight: :nnoremap <leader>1 :match Search '\%>80v.\+'<CR> To deactivate it: :nnoremap <leader>2 :match none<CR> UPDATE to use same key/key combination to toggle highlight: let s:activatedh = 0 function! ToggleH() if s:activatedh == 0 let s:activatedh = 1 match Search '\%>80v.\+' else let s:activatedh = 0 match none endif endfunction nnoremap <leader

Vim: toggle highlighting of long lines

北慕城南 提交于 2019-12-01 16:40:03
问题 In my .vimrc, I have: :au BufWinEnter * let w:m1=matchadd('Search', '\%>80v.\+', -1) to highlight lines that stray over the 80 character limit. How can I set it so that this is toggled on/off by pressing a function key? 回答1: Use mappings. To activate highlight: :nnoremap <leader>1 :match Search '\%>80v.\+'<CR> To deactivate it: :nnoremap <leader>2 :match none<CR> UPDATE to use same key/key combination to toggle highlight: let s:activatedh = 0 function! ToggleH() if s:activatedh == 0 let s