text-editor

Add quotation at the start and end of each line in Notepad++

亡梦爱人 提交于 2019-11-29 19:01:59
I have a list (in a .txt file) which I'd like to quickly convert to JavaScript Syntax, so I want to take the following: AliceBlue AntiqueWhite Aqua Aquamarine Azure Beige Bisque Black BlanchedAlmond and convert it to an array literal... var myArray = ["AliceBlue", "AntiqueWhite", ... ] I have the list in notepad++ and I need a reg expression to add the " at the start of the line and ", at the end and remove the line break... does anyone have a quick fix to do this? I'm terrible with RegEx. I often have to perform such tasks so to know how to do this would be a great benefit to me. Many thanks

Change the default editor for files opened in the terminal? (e.g. set it to TextEdit/Coda/Textmate)

帅比萌擦擦* 提交于 2019-11-29 18:50:15
Is there a way to make files opened for editing in the terminal open in Textedit instead? For example, where a command might open a file for editing (like git commit ), instead of opening that file in vim or emacs, it would open in Textedit (or perhaps another text editing application of your choosing, such as Coda or Sublime). And as a bonus question, is there any way to specifically configure git to automatically open the file created after running git commit in an editor from the applications directory? alternative Most programs will check the $EDITOR environment variable, so you can set

How to get an outline view in sublime texteditor?

不想你离开。 提交于 2019-11-29 18:40:47
How do I get an outline view in sublime text editor for Windows? The minimap is helpful but I miss a traditional outline (a klickable list of all the functions in my code in the order they appear for quick navigation and orientation) Maybe there is a plugin, addon or similar? It would also be nice if you can shortly name which steps are neccesary to make it work. There is a duplicate of this question on the sublime text forums. Cory Petosky Hit CTRL + R , or CMD + R for Mac, for the function list. This works in Sublime Text 1.3 or above. I use the fold all action. It will minimize everything

notepad++ select hyphenated text

大城市里の小女人 提交于 2019-11-29 18:14:07
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 6 years ago . I could'nt find a solution to a problem that has been hindering the use of notepad++. When you double click text to highlight that text and others like it, camelCase or under_score words work great, but when hyphen-words-are-clicked this does not treat it as a single word and only highlights the segment between the "-". question: how can you customize

Problems implementing TinyMCE in CodeIgniter

◇◆丶佛笑我妖孽 提交于 2019-11-29 18:03:04
I am trying to implement TinyMCE in CodeIgniter. I've created a view file and called it from a controller. I have uploaded all files into my CI project folder and showed the path of the files. But it is not working. Here is the view file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Full featured example</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <!-- TinyMCE --> <script type="text/javascript" src="<?php echo base_url()?>application/tinymce/jscripts

looking for a UTF-8 text editor

和自甴很熟 提交于 2019-11-29 15:16:00
问题 I am looking for a (simple) text editor that can handle text in different encodings in the same document. I need to develop some sites with mixed Japanese and English text and the editors I have now (on an English Windows system) are unable to display the Japanese text. Jedit files don't display the Japanese text I have inputted but when I look at the file in a browser it shows up correctly. Gvim shows all Japanese text in the editor as question marks and also in the browser. In Gvim

How do I accept input from arrow keys, or accept directional input?

纵然是瞬间 提交于 2019-11-29 14:43:27
This may be an xy problem, but I'm trying to to build a kernel based text editor, similar to vim or nano , and I know how to use the escape chars to clear the screen, then reprint, I can have it accept characters, but I'm not sure how to get it to accept arrow inputs for navigation. I thought there were ASCII values for them, but apparently not. Is there a way to use the arrows, or do I have to make a navigation mode and insert mode like vim ? I've also briefly played with curses , but that was prohibitive because, as I understood, a whole new window had to be opened for it and this is not

Map Esc key in Vim

↘锁芯ラ 提交于 2019-11-29 14:39:31
问题 I'm a beginning Vim user. I hate pressing the Esc key, which is a little far on my T61. In order to return to command mode. How do I map it to F4 ? 回答1: For a single session, you could just enter the following keystrokes exactly: esc : i m a p space < f 4 > space < e s c > enter The esc key ensures that you're in command mode, colon starts a line command, and the imap maps the F4 key to ESCAPE. However, if you want this retained for every session, you'll need to put in in your Vim start-up

sublime text 3 sidebar autoupdating not working

落爺英雄遲暮 提交于 2019-11-29 11:17:36
问题 I was wondering if anyone could tell me how to make it so that sublime text 3 automatically updates the sidebar when i add a new folder/file to the current project in finder (osx). Right now, I have to manually go to Project -> Refresh Folders My user preferences are probably not the issue as they are very basic: { "color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme", "font_size": 18, "tab_size": 2, "translate_tabs_to_spaces": true } If anyone could help that would be

What are the best options for Rich Text Editing in Rails?

隐身守侯 提交于 2019-11-29 00:53:08
问题 I'd like to use Rich Text Editing in place on forms in order to let admins change instructions. What are the best options for doing this? [To be more clear - the admins are non-technical but may want to control some formatting without using markup or with as little markup as possible. What I'd like is for them to be able to edit inline all AJAXy with an RTE featuring some formatting controls and then submit and be able to see what the instructions will look like to the end user without