sublimetext2

How to edit a native build system in Sublime Text 2?

╄→гoц情女王★ 提交于 2020-01-10 08:08:20
问题 Ok this is very trivial question, but just cannot find answer anywhere. I know there must be a JSON file with all the build systems somewhere, but I just cannot find it? 回答1: Here is the doc on ST2 build systems The Ruby build file, for instance, is located here: ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build 回答2: Mac: Preferences ► Browse Packages will open the finder window where all the foo.sublime-build files are stored. Build sys scripts you have created

How do I do a regex search and replace in sublime text 2?

谁说我不能喝 提交于 2020-01-09 19:29:13
问题 I want to remove inline style from an html document in ST2. I imagine my regex will be something like this style=\"*\" If that's wrong, it doesn't matter. I'm sure I'll figure out the expression I'll need. What I haven't been able to figure out, is how to actually use a regex to find or to find and replace text in ST2. The docs say that it can be done. But I can't find the documentation for how to do it. 回答1: Simply open the Search+Replace function (via Ctrl-H or the menu bar) and check the

Add a number to each selection in Sublime Text 2, incremented once per selection

点点圈 提交于 2020-01-09 08:18:13
问题 Is there a way to add insert a number that is incremented once per cursor in Sublime Text 2? Example, with | as the cursor: Lorem ipsum dolor sit amet, | vehicula sed, mauris nam eget| neque a pede nullam, ducimus adipiscing, vestibulum pellentesque pellentesque laoreet faucibus.| Desired result: Lorem ipsum dolor sit amet, 1| vehicula sed, mauris nam eget2| neque a pede nullam, ducimus adipiscing, vestibulum pellentesque pellentesque laoreet faucibus.3| Does this functionality exist natively

Textmate Regex: Find word based on a pattern that only exists in declaration

谁说我不能喝 提交于 2020-01-07 00:57:50
问题 Is it possible to have a regex expression match with a pattern that finds a word and then also matches with any other occurrences of that word? To be more explicit, lets say I have some language that declares variables with a # like #varName I also have the regex expression (?<=#)\w* to locate such words. However, in another part of my code I use varName without the # and thus cannot identify it using the same method. So my question is, can I write one regex expression to locate varName in

How do I save as certain file type in sublime text 2?

▼魔方 西西 提交于 2020-01-06 14:08:10
问题 I am very new to programming and started using sublime text 2 as an editor for corona sdk and I am really liking it aside from one small problem. My Problem: When I open a new file in sublime text and then save it as a .lua file it does not save as a .lua. I use the drop down menu to select save as .lua. When I look at the file in my project folder the filetype is specified as only "file". This problem wont stop me from using sublime but it is very annoying. Any help would be appreciated. 回答1

Why Sublime Text 2 highlights in white everything with no reason

試著忘記壹切 提交于 2020-01-06 13:27:46
问题 It is really annoying. I do not know if it's because I installed something, or what? But suddenly sublime text began to select all php variables or html tags in white for no reason. I've tried turn it off but I have no idea how :( When I open some the file, the code is ok but whenever I edit anything, even without saving, it immediately become marked white :( 来源: https://stackoverflow.com/questions/23559658/why-sublime-text-2-highlights-in-white-everything-with-no-reason

Why Sublime Text 2 highlights in white everything with no reason

烈酒焚心 提交于 2020-01-06 13:27:25
问题 It is really annoying. I do not know if it's because I installed something, or what? But suddenly sublime text began to select all php variables or html tags in white for no reason. I've tried turn it off but I have no idea how :( When I open some the file, the code is ok but whenever I edit anything, even without saving, it immediately become marked white :( 来源: https://stackoverflow.com/questions/23559658/why-sublime-text-2-highlights-in-white-everything-with-no-reason

Replace using regex in sublimetext2

≡放荡痞女 提交于 2020-01-06 08:12:46
问题 I would like to use regex (preferably in sublimetext2) to replace the following: <td class="etword">et alfabet</td> <td class="etword"> </td> with this: <td class="etword">et alfabet</td> <td class="etword"><?php audioButton("../../audio/words/et_alfabet","et_alfabet");?></td> Thanks very much! 回答1: Sublime Text Find what: <td class="etword">(.*?)</td>\n<td class="etword"> </td> Replace with <td class="etword">$1</td>\n<td class="etword"><?php audioButton("../../audio/words/$1","$1");?></td>

Sublime text 2 google app engine code completion

你。 提交于 2020-01-05 10:11:42
问题 just trying out sublime text and like it, but is there any way to customize it for use with google app engine? Would be nice to at least have code completion. Thanks 回答1: If you're not already using it, install Package Control and then install SublimeCodeIntel. While not specifically for GAE, it provides intelligent code completion for any modules that are imported into your code. The initial run will take a while, as it has to index everything and GAE is quite large, but it'll definitely

Sublime text 2 google app engine code completion

夙愿已清 提交于 2020-01-05 10:11:34
问题 just trying out sublime text and like it, but is there any way to customize it for use with google app engine? Would be nice to at least have code completion. Thanks 回答1: If you're not already using it, install Package Control and then install SublimeCodeIntel. While not specifically for GAE, it provides intelligent code completion for any modules that are imported into your code. The initial run will take a while, as it has to index everything and GAE is quite large, but it'll definitely