sublimetext3

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

PHP's HERE Doc (EOT) syntax highlighting discrepancy with forward slash on Sublime Text 3

不打扰是莪最后的温柔 提交于 2021-01-28 02:27:08
问题 I am unfamiliar with how Sublime Text 3 uses syntax highlighting, as in, if it purely relies on the theme or has it's built in standard that themes run off of but in my case, there's some syntax highlighting discrepancy with using PHP's HERE docs and forward slashes. Once a forward slash is present, it appears ST3 thinks all the following code is apart of that tag. Is this something I can fix? Forward slash syntax highlighting discrepancy No forward slash and correct syntax highlighting 回答1:

PHP's HERE Doc (EOT) syntax highlighting discrepancy with forward slash on Sublime Text 3

雨燕双飞 提交于 2021-01-27 22:51:03
问题 I am unfamiliar with how Sublime Text 3 uses syntax highlighting, as in, if it purely relies on the theme or has it's built in standard that themes run off of but in my case, there's some syntax highlighting discrepancy with using PHP's HERE docs and forward slashes. Once a forward slash is present, it appears ST3 thinks all the following code is apart of that tag. Is this something I can fix? Forward slash syntax highlighting discrepancy No forward slash and correct syntax highlighting 回答1:

Special significance to single 'n' character in YAML?

丶灬走出姿态 提交于 2021-01-27 20:31:04
问题 Does a single n character hold any special significance in YAML? I'm asking because my Sublime 3 Text Editor highlights it with a different color than other string values and I don't really understand the reason for it. 回答1: TL;DR; That n is the, pre-2009, canonical representation in YAML for the boolean "False" value. Sublime should not highlight that by default as n hasn't had such a representation in YAML since 2009. If at all, it should only highlight that n if you explicitly specified to

Sublime Text Indentation Settings Being Overwritten By a File

我们两清 提交于 2021-01-27 04:23:11
问题 I am working on a project where tab size is supposed to be 4 and tabs should not be spaces. I updated my Preferences.sublime-settings file to include "detect_indentation": "false", "tab_size": 4, "translate_tabs_to_spaces": false, When I open a new file these settings are set to how I want and everything works. However, if I open an existing file (scss or html) that has indentations as 2 spaces, my Sublime settings are overwritten and indentations change to 2 spaces. If I click View >

Sublime Text Indentation Settings Being Overwritten By a File

♀尐吖头ヾ 提交于 2021-01-27 04:23:07
问题 I am working on a project where tab size is supposed to be 4 and tabs should not be spaces. I updated my Preferences.sublime-settings file to include "detect_indentation": "false", "tab_size": 4, "translate_tabs_to_spaces": false, When I open a new file these settings are set to how I want and everything works. However, if I open an existing file (scss or html) that has indentations as 2 spaces, my Sublime settings are overwritten and indentations change to 2 spaces. If I click View >

How to set or find the command name of a Sublime Text plugin

别说谁变了你拦得住时间么 提交于 2021-01-20 12:48:32
问题 I am trying to write an ST3 Plugin for my node js server. In order to run it I am calling the command view.run_command('Node js.nodejs') . My Sublime Text Packages folder looks like this: │ main.py │ text_example_one.py │ ├───Node js │ Nodejs.py │ └───User │ main.py │ Package Control.last-run │ Package Control.sublime-settings │ Preferences.sublime-settings │ └───Package Control.cache 01524fae79697630d0454ba3fabd9414 01524fae79697630d0454ba3fabd9414.info The ../Packages/Node js/Nodejs.py file

Error when saving to a mapped drive in Sublime only: cannot save a file with a user-mapped section open

…衆ロ難τιáo~ 提交于 2021-01-07 11:24:35
问题 When I try to save a file in sublime from a mapped network drive I get an error: Unable to save Y:\MySite\index.html Error: The requested operation cannot be performed on a file with a user-mapped section This error does not happen in Notepad, and is coming from Sublime Text rather than windows, which makes me think Sublime is trying to do something funky during the save process. What I've tried: The file is open somewhere else. No , I can save the file in Notepad. There may be an issue with

Error when saving to a mapped drive in Sublime only: cannot save a file with a user-mapped section open

依然范特西╮ 提交于 2021-01-07 11:17:14
问题 When I try to save a file in sublime from a mapped network drive I get an error: Unable to save Y:\MySite\index.html Error: The requested operation cannot be performed on a file with a user-mapped section This error does not happen in Notepad, and is coming from Sublime Text rather than windows, which makes me think Sublime is trying to do something funky during the save process. What I've tried: The file is open somewhere else. No , I can save the file in Notepad. There may be an issue with

How to edit 'column select' shortcut in Sublime text 3 portable

空扰寡人 提交于 2021-01-04 08:51:00
问题 I am a novice to Sublime text. Previously I used notepad++. I use column selection frequently. In notepad++ it comes to me handy with alt + left mouse click which I can drag up to my wished selection. In Sublime text, it is shift + right mouse click and drag up to wished selection for Windows. I want to change it to alt + left mouse click as I have used it in notepad++. I tried searching in preferences > key bindings in sublime text. But couldn't find mouse-key mappings there. I am using