Does anyone know if there are any Sublime Text 2 packages available to enable syntax highlighting for SpecFlow / Gherkin specification files?
There are a few solutions to integrate Sublime Text with Gherkin, (in this case with Cucumber not SpecFlow): https://makandracards.com/ninjaconcept/9233-how-to-use-cucumber-together-with-sublime-text-2-editor
Or as a Sublime bundle: https://github.com/npverni/cucumber-sublime2-bundle
And specifically related to your question then this gist (mentioned by Blender above) will add gherkin syntax to Sublime Text 2: https://gist.github.com/864839
Note, there seems to be slight issues with this gist, which is fixed by the comments in this: http://expertbeginner.com/2011/04/18/sublime-cucumbe/ (Edit: Gone, archive.org copy)
Here is the Sublime Text Packages
All-in-one Package for Cucumber: https://github.com/drewda/cucumber-sublime-bundle
For Feature file autocompletes: https://github.com/AndyHitchman/sublime-gherkin-auto-complete
For building cucumber from sublimetext (ctrl+B): https://github.com/Aravin/Cucumber-Build-SublimeText
Related
I see a guy when he type "a>img" and press tab (type on sublime text), the code appears: <a><img src=""></a>, but I can't do that, how did he do that? thanks for your support
You have to install emmet.
The preferred way to install Emmet is to use Package Control:
Open Command Palette in Sublime Text
Pick “Install Package” command
Find and install “Emmet” plugin
here you can find :-
https://emmet.io/blog/sublime-text-3/
When writing SVG into Sublime Text 3, one of the auto-complete options is:
<sms.svg></sms.svg>
It also has:
<skype.svg>
Does anyone know what these are or how to use them? Are these only icons or do they have any other uses?
Google does not return any results other than SMS SVG icons.
Not Sure if this helps anyone locate any documentation on these but the Current packages I have installed on Sublime are
A File Icon,
AngularJs,
BrowserRefresh,
Color Highlight Settings,
CssFontFamily,
Emmet,
Favourites,
GoogleSearch,
Hound,
Link Opener,
NpmInstall,
Package Control,
Package Dev,
Php Completions,
Php Constructors,
Plugin Debbuger,
Rust Enhanced,
Send Text,
SideBar,
SimplePHPUnit,
Trailing Spaces,
Anaconda Rust,
Babel,
Jasmin,
Live Reload,
NodeJs,
PrettyJson,
Sound,
SublimeCodeIntel,
ColorPicker..
That took alot longer than i expected...
If I had to guess out of All of these
I would expect it to be either Plugin Debugger or
Package Dev.. But not 100% sure..
They are provided by the A File Icon. That's the first package in your listed packages.
Here's the Github Link & Documentation: https://github.com/SublimeText/AFileIcon
I am using Compass with H5BP, developing with Sublime Text 3.
I've set up some variables and I want to use an autocomplete feature when typing them.
Also, I think I've installed a lot packages for auto-complete/code completion/code assistance, could you please tell me if there are any conflicts, or if there are some that can be removed(without loosing functionality)?
These are the ones I've installed:
All Autocomplete
Bracket Highlighter
Emmet
Hayaku
HTML5
LiveReload
Sass
Sublime CodeIntel
You can use SASS Snippets. It lets me auto complete variable names.
I hope the Sublime Text 2 syntax highlighting system to support new C++11 keywords, such as constexpr.
However, I did not figure out how to achieve it, can anyone help?
Edit this file:
~/Library/Application Support/Sublime Text 2/Packages/C++/C.tmLanguage
Go to approx. line 55 and add constexpr to the list
<dict>
<key>match</key>
<string>\b(const|extern|register|restrict|static|volatile|inline)\b</string>
<key>name</key>
<string>storage.modifier.c</string>
</dict>
I know this is a Sublime Text 2 question, but when I tried googling this for Sublime Text 3 I came across this post, so I thought I'd mention that Sublime Text 3 has its own system (docs here and here), and as mentioned by user lthreed on this question, you can use the package PackageResourceViewer to look at the source of Sublime Text's pre-packaged syntax definitions (and then copy/paste them into your own syntax for editing).
In notepad++ there is a toolbar button to switch on/off display of EOL characters, i.e. carriage return and line feed.
Can Sublime Text 2 do the similar thing?
In case anyone is here years later, I found success with the sublime package RawLineEdit.
Install with Package Control
Enter Raw Line Edit: Toggle into the command palette (via Ctrl+Shift+P)
Further documentation of features can be found in the User Guide.
Note that this package is only supported in Sublime Text 3.
Sublime Text does not currently support displaying EOL characters.
http://sublimetext.userecho.com/topic/104394-is-it-possible-to-show-all-characters-spaces-tabs-cr-lf-etc/
There is a quick workaround, in the search, enable the Regular expression and the search value use \n. You will see all the line feed is highlighted.
05 2021
This might not really helpful for OP question and also the question is 8yrs old and iam assuming he must have got a answer pretty early on.
This is anyone still looking for the answer to show the carriage return in Sublime text 3.
As on May 2021 the current version is 3.2.2
Detailed version of #Sam YC answer
Tested in Sublime text 3
Press Ctrl+ F (Windows)
Select the first box 'Regular Expression (Alt+R)'
Also select 'Highlight matches' (Last box with plain border)
Enter \n
You should see something like this. If you do not see anything, just toggle the 'Highlight matches'.
There is another way to achieve this.
Go to preference -> choose "settings-user"
In the file opened paste this command.
"ensure_newline_at_eof_on_save": true