How to display quick help for any keyword in Sublime Text 2? - plugins

Recently I used Brackets. It displays quick help on any keyword when ctrl-K is pressed. A link to the correponding doc on docs.webplatform.org is also displayed. How to achieve similar functionality in Sublime Text 2 ?
Support for at least CSS and JS is required.

Related

How to disable the typing text highlighting feature in VSCode?

After I accidentally updated vscode to v1.64.2 from v1.62.x, I started to get this weird text highlighting (or bold text, weighted text) while I type text through Google IME (for example the Google Japanese Input Tool)
As a comparison this is something you see when the text is not highlighted.
Anyone knows how to disable this feature or get around this issue? Thanks.

How to add a macro to an umbraco page when using the markdown editor

EDIT:
What I really need is an editor that'll allow me to write html directly and allow inserting macros.
I'm using WMD editor in umbraco 7 and need to add a partial view macro to the page.
The editor does not have an insert macro button and if I pasted the following code in the editor, it is not shown in the page. I think the markdown processor removes it from the page ; <umbraco:Macro Alias="YourMacroAlias" \>
How can I add the macro to the page ?
Out of the box, the WMD editor does not support embedding Macros in the same way as the Richtext Editor does. You could raise a feature request at http://issues.umbraco.org and see if they'll add it, or you could take the source of the WMD from the Umbraco source at https://github.com/umbraco/Umbraco-CMS and create your own version of the markdown editor based on it.
The way the Richtext editor does it is that it stores the macro details as a specially formatted bit of markup, and there's some code in the front end that looks for that markup and replaces it with the output of the Macro.
Go to the developer section. Open the Macros.
In your macro there is a checkbox "Use in rich text editor and the grid" and "Render in rich text editor and the grid" check this.
For Using in Rich Text the option must be checked in the Data Type.
In the Developer section there is below Data Types, the Richtext editor data type check umbmacro.
In the Rich Text editor there is a "Insert Macro" Button, the 2 gears icon.
But for a markdown datatype there is no button, no support, An option is invent a tag a replace you tag in the template with somethings else. To come a bit near a macro functionality.
Instead of using Markdown editor for less options, you can disable excess commands for the tinyMce too. Extra tags added by tinyMce can also be disabled, see at end
Firstly there is file in config folder named tinyMceConfig.config. It handles the options in all datatypes using tinyMce. Below is entry for macro
<command>
<umbracoAlias>umbracomacro</umbracoAlias>
<icon>images/editor/insMacro.gif</icon>
<tinyMceCommand value="" userInterface="true" frontendCommand="umbmacro">umbracomacro</tinyMceCommand>
<priority>62</priority>
</command>
Go to
Developer -> DataTypes -> Rich Text Editor
There will be toolbar checkbox list. Select umbmacro from the list and save the data type. You will see the macro on the WYSIWYG editor. Uncheck all unwanted options. Also you can create new datatype say "RTE Lite" using property editor "Rich Text Editor" and use this "RTE Lite" where less options are needed.
Edit: Okay, if you do not like extra p tag added by tinyMce, go to "tiny_mce_src.js" file from your umbraco solution, search for forced_root_block : 'p' and change it to forced_root_block : ''

Editing the font and style of the text in the instructions box in MIT Scratch project page

The problem: How do I change the font in the instruction text box in an MIT Scratch project page. For example: make a line of text standout in bold. I believe it maybe done through editing the html code that is behind the box as I found a read only editor button that displays the code for the box. Unlike say a cell in Ipython you cannot simply surround text with tags. It seems such a simple problem but I have not found the solution yet.
Sorry, you can't do it.
The only thing you can do is to search for special font-characters and paste them in the Instruction text-box
For a day or two fairly recently this was allowed from a bug, but that bug was fixed and it's now impossible.
It's possible to change the HTML code, but that changes would only seen by you, and nobody else. There isn't a way to do it.

How to mimic Sublime Text's HTML dom completion in Emacs?

Currently in Sublime Text 2 I can do the following while editing a .html file:
hr.margin-none <TAB>
and it will expand automatically to
<hr class="margin-none"></hr>
Is there a similar function in Emacs? I found something on Flexible Expand but it doesn't seem to do what I was hoping (or maybe I'm just using it wrong.)
Thanks!
You can do the same thing in Emacs. Just install the emmet-mode and enable it. Reading the following page would help you.
https://github.com/smihica/emmet-mode

How to resize autocomplete window in Sublime Text 2?

I'm using Sublime text 2 as text editor for HTML and JavaScript and I have a small problem. I'm using autocomplete but some of the function's names are so long that I can see only first 5 or 6 symbols of it. Is anybody knows how can I resize the autocomplete window? Thanks again.
As far as I know, it's not possible in ST2. It might not be in ST3 either, but at least the autocomplete pop-up adapts its size to the content. Should you consider an update, make sure to have a look at the Can I switch to Sublime Text 3 website first.