sublimetext2

Regex to match uppercase Expressions and Words

故事扮演 提交于 2021-01-28 04:48:16
问题 Using Sublime Text 3 I want to extract only uppercase words and expressions from a text. Example: Hello world! It's a SUNNY DAY for all. If I use the find tool, I can extract all uppercase words separately by using this regex: \b[A-Z]+\b The results are SUNNY and DAY, but I would like to consider SUNNY DAY as a whole to extract trough the find tool, without leaving behind simple words like in: It's SUNNY today. 回答1: You can simply use \b[A-Z]+(?:\s+[A-Z]+)*\b See regex demo I added (?:\s+[A-Z

Changing the stroke color for an inline SVG

北城以北 提交于 2021-01-18 05:33:06
问题 Issue 1 I'm trying to change the stroke color of an inline svg on hover. It's a path exported from Illustrator and put through Peter Collingridge's SVG optimiser. The articles I read on styling inline SVG are very straight forward but the techniques won't work on my SVG. I have placed a hover pseudo-class on the tag and can't seem to target the stroke. <svg class="highlight" width="86" height="68" viewBox="0 0 85.7 68.5"> <polygon points="11 60.7 74.7 60.7 42.8 4.4 " style="fill:none;stroke

Sublime Text subl shortcut not working: ln: /Users/edmundmai/bin/subl: No such file or directory

拟墨画扇 提交于 2020-08-21 01:43:04
问题 Hi I am trying to set up the terminal shortcut for sublime text 2( subl ) but it's not working. I'm following the directions on https://github.com/mhartl/rails_tutorial_sublime_text/blob/master/README.md but can't get past the first step. When I type: ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl I receive the error ln: /Users/edmundmai/bin/subl: No such file or directory What should I do? 回答1: This probably means that there is no ~/bin directory. Which

Sublime Text subl shortcut not working: ln: /Users/edmundmai/bin/subl: No such file or directory

我与影子孤独终老i 提交于 2020-08-21 01:42:42
问题 Hi I am trying to set up the terminal shortcut for sublime text 2( subl ) but it's not working. I'm following the directions on https://github.com/mhartl/rails_tutorial_sublime_text/blob/master/README.md but can't get past the first step. When I type: ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl I receive the error ln: /Users/edmundmai/bin/subl: No such file or directory What should I do? 回答1: This probably means that there is no ~/bin directory. Which

sublime text2的snippet设置

狂风中的少年 提交于 2020-03-21 15:07:00
3 月,跳不动了?>>> 打开tools-new snippet.. <snippet> <content><![CDATA[ Hello, ${1:this} is a ${2:snippet}. ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <!-- <tabTrigger>hello</tabTrigger> --> <!-- Optional: Set a scope to limit where the snippet will trigger --> <!-- <scope>source.python</scope> --> </snippet> content里面写上你定义的代码段 tabTrigger里面写上你的快捷键 scope里面是你要为什么格式的文件设置快捷键,有如下选项: ActionScript: source.actionscript.2 AppleScript: source.applescript ASP: source.asp Batch FIle: source.dosbatch C#: source.cs C++: source.c++ Clojure: source.clojure CSS: source.css D

how to create a custom layout in sublime text 2?

两盒软妹~` 提交于 2020-02-27 22:45:27
问题 I would like to create a 2 column layout where column 2 is split into 2 rows but havent really had any joy trying to find out how this can be done. I know that this layout gets added to Main.sublime-menu so I duplicated one of the layouts and called it Custom 1, not sure what I have to add in as the key/value pairs or array though. Could anyone possibly help me with this? here is what im working with so far: { "caption": "Custom 1", "command": "set_layout", "args": { "cols": [0.0, 0.5, 1.0],

How do I get HTML syntax highlighting inside PHP strings & heredoc syntax?

大憨熊 提交于 2020-02-23 09:27:09
问题 I'm using Sublime Text with the Pastels on Dark theme. My language of choice is PHP. How can I get HTML syntax highlighting inside PHP strings & heredoc syntax? 回答1: Name your heredocs after the language you are using. This will syntax highlight in many text editors, including Sublime Text. For example: echo <<<HTML <!-- put HTML here and it will have syntax highlighting --> HTML; 回答2: Wanted to add this as a comment to Ol' Reliable's answer but I am not allowed yet. Whilst coding outside and

SublimeText - Unselect last incrementally selected element?

﹥>﹥吖頭↗ 提交于 2020-02-19 07:37:08
问题 I recently discovered the insanely useful ctrl + D functionality in sublime text. With a careful eye, it's almost as functional for things like renaming as far more sophisticated refactoring tools. One thing bothers me. As I ctrl + D through my selections, sometimes I've selected 10 items and overshoot by one (eg. into another method). Is there a way to reverse direction and "deselect the last selected item"? 回答1: ctrl + u as per sublimetext.com/docs and tested by me. ctrl + k , ctrl + d will