text-editor

sublime text 3 html autocompletion not working correctly

◇◆丶佛笑我妖孽 提交于 2019-12-01 11:25:25
I am trying to use sublimetext3 for editing html. If I do ul tab, then it generates <ul></ul> if I do ul.temp tab, then it generates <ul class="temp"></ul> however, when I am trying ul>li.temp tab, it is generating ul><li class="temp"></li> What I am expecting to see is <ul><li class="temp"></li></ul> I have package control. What am I missing in getting this functionality? skuroda Note: Moved to an answer at the request of the original poster. Perhaps the behavior you are looking for comes from the Emmet plugin What you are describing it the expected behavior for Sublime Text. The

Sublime Text Plugin : Adding python libraries

孤街醉人 提交于 2019-12-01 07:17:06
I'm trying to write a sublime text plugin which would make some windows api calls. I did some research and found out that this python library provides the API's that I need to use. So, I'm trying to to use this library. When I add import statement for it in my sublime text plugin it gives me error ImportError: No module named win32api I'd assume that it's because sublime text comes with inbuilt python and I haven't actually installed these libraries on my system it's throwing up these errors. How do I add such libraries in my sublime plugin also How would I distribute such plugin? In order to

Eclipse Plugin - How to get the last worked on editor

本秂侑毒 提交于 2019-12-01 00:01:59
I am writing an eclipse plugin which exposes a view to the user with several buttons. On the click of any button, I would like to paste a certain comment into the editor window where the user is currently working and at the cursor location he is pointing to. Once the user clicks the button, the editor window no longer has focus and the following code does not work. workbench.getActiveWorkbenchWindow().getActivePage().getActiveEditor() How can I detect the editor window where the user was working and the cursor location before the user clicked the button? Use an IPartListener to listen to part

is there an autosave function/plugin for notepad++?

為{幸葍}努か 提交于 2019-11-30 17:11:09
After an unplanned system restart, all of my Notepad++ temp (and unsaved) tabs are gone. How can I avoid this in future? I don't want to have to save explicitly every single temp file with a file name. Is there a plugin for NP++, which saves my session every time I'm editing an active tab or every X minutes? Or is there an equivalent (and comfortable) editor to NP++, which autostores it's session automatically? You can find a Notepad++ plugin called AutoSave for autosaving your files here: https://sites.google.com/site/fstellari/nppplugins It autosaves every minute, but it's configurable, and

notepad++ select hyphenated text

只愿长相守 提交于 2019-11-30 11:50:42
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 notepad++ so that hyphenated words are treated as single words? or does anyone know a text editor that does this? saw this, but not sure how to implement it: http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Word_Customisation

looking for a UTF-8 text editor

。_饼干妹妹 提交于 2019-11-30 10:16:43
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 inputting the kanji works (you input the pronounciation and then press space bar to get the kanji) but when you

Map Esc key in Vim

怎甘沉沦 提交于 2019-11-30 09:26:18
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 ? 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 file. The location of this varies depending on your environment (for my Linux box, it's at $HOME/.gvimrc for

sublime text 3 sidebar autoupdating not working

天大地大妈咪最大 提交于 2019-11-30 07:56: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 great as I have tried googling, searching for an answer to this but havent found anything that works.

Ruby and linux, preferred setup?

余生颓废 提交于 2019-11-30 06:13:18
问题 Mac's have TextMate as there preferred application for ruby development, but what would be the preferred application for linux? I need something where it's easy to work with multiple files, project structure and setup commands to run my ruby app or if it is one my merb app.Syntax highlighting is also a must. Now I typically use Vim, but it's not the best for working with multiple files or with a project structure, even with VTreeView plug-in or multiple VIM windows. So what would you guys

How to change position of output panel in sublime text?

泄露秘密 提交于 2019-11-30 04:43:38
I want the output to show to the right of the code, not bellow it. I can change the view to two columns but I can't change the position of the output panel. For example: Is it possible to change the position of the output panel to be to the right of the code, not below it? There is a solution, which exists for years already, but does not seem to be widely used. It's the package buildview : it puts the build output in any other view, i.e. acts as a normal tab. LINK: https://packagecontrol.io/packages/sublime-text-2-buildview (perfectly works with sublime 3) It seems this feature has been