A Sublime Text plugin that supports CSS documentation search from selections in the editor
- Total 2K
- Win 2K
- OS X 466
- Linux 334
|Mar 23||Mar 22||Mar 21||Mar 20||Mar 19||Mar 18||Mar 17||Mar 16||Mar 15||Mar 14||Mar 13||Mar 12||Mar 11||Mar 10||Mar 9||Mar 8||Mar 7||Mar 6||Mar 5||Mar 4||Mar 3||Mar 2||Mar 1||Feb 28||Feb 27||Feb 26||Feb 25||Feb 24||Feb 23||Feb 22||Feb 21||Feb 20||Feb 19||Feb 18||Feb 17||Feb 16||Feb 15||Feb 14||Feb 13||Feb 12||Feb 11||Feb 10||Feb 9||Feb 8||Feb 7||Feb 6|
A Sublime Text 2/3 plugin that supports CSS documentation search from selections in the editor
cssDOC allows you to view the Mozilla Developer Network CSS documentation for the selection in your editor. If your selection matches a CSS entity, the documentation page is opened in your default browser. If cssDOC is not able to identify the selection as a CSS entity, the default browser is opened and the Mozilla Developer Network documentation is searched (using a CSS filter).
Using Sublime Package Control
cssDOC can be installed using Sublime Package Control. Open the command palette with:
Cmd + Shift + P
Linux & Windows
Ctrl + Shift + P
install and select the menu item,
Package Control: Install Package.
cssDOC and select the cssDOC package that is displayed. This will install the package in your editor.
Use the Sublime Text menu items
Preferences -> Browse Packages to locate your Packages directory.
Navigate to the directory in your terminal and clone the cssDOC source repository inside the Packages directory using the command:
git clone https://github.com/chrissimpkins/cssDOC.git "cssDOC"
Download the zip compressed archive from GitHub.
Decompress the zip archive and rename the directory
Open your Sublime Text Packages directory using the
Preferences -> Browse Packages menu items.
Move the entire
cssDOC directory into your Sublime Text Packages directory.
'Hover' Search vs. Selection Search
You have the option to either select the complete CSS element substring (including pseudoelement characters like ':', '::', and '@') or to locate the cursor within the element, at the beginning of the element, or at the end of the element ('hover' search) in order to launch documentation with cssDOC. Then, use one of the following approaches to open the docs:
Search with Right Click Menu
CSS Doc Search menu item in the right click menu.
Search with Keybinding
Use the following keybinding to perform the search:
CSS Documentation Search Keybinding
Search with the Command Palette
Enter the keybinding to open the command palette (see description above in the Sublime Package Control section). Type 'cssdoc' and then select
CSS Doc Search (cssDOC).
Having a problem? Let's fix it. Here are a few steps that will lead to the most rapid fix:
Make sure that you selected text in the editor before attempting to use cssDOC. It's not that good (yet…).
Open the Sublime Text console with
View -> Show Console, then run cssDOC again. It generally provides helpful hints for problems and any exceptions that are raised will be displayed.
Submit the issue on the GitHub repository with as much detail as you can provide. Please paste the console ouptut for any exceptions that are raised.
v2.1.1 - added main menu item for access to documentation & keybinding settings
v2.1.0 - added 'hover' search - place cursor in/at beginning of/at end of CSS element and run cssDOC
v2.0.0 - changed the keybinding to
Ctrl-Alt-C because, well, I suppose you may want to copy in a text editor, mea culpa…
v1.0.1 - added horizontal dividers to the context menu item
v1.0.0 - initial release