Comment snippets package of sublime text is not working in css - html

I installed sublime text and included comment snippets (https://packagecontrol.io/packages/Comment-Snippets) it's working in html and others languages but it doesn't work in css whenever i wrote my comments like this:
comm-section
it gives me this output:
comm-section: ;
in html
/*=============================================
= Section comment block =
=============================================*/
/*----- End of Section comment block ------*/
how to be fixed in css like in html
Thanks for replying

I've had this problem before, the main reason why this isn't working is because you have "EMMET" package installed and it's overriding it.
If you find yourself not really using EMMET's shortcut for css, you can disable it in EMMET's settings.
Go into Sublime: SublimeText -> Preferences -> Package Settings -> Emmet -> Settings User
Open it and type in:
{
"disable_tab_abbreviations_for_scopes": "source.css"
}
Save it, then try your comments again. It should work now.

Related

VS Code doesn't support any .html files

Please help me. I installed all extensions for html. But it doesn't work. What is can i do.
You have got your page in Django Template. Please change it to HTML! That should work.
You can change language mode on the bar below on the right from "Django Template" to "HTML" and it would work.
But if you want to use "Django Template" you can add this to your settings.json file:
"emmet.includeLanguages": {
...
"django-html": "html",
...
},
how to add it?
ctrl + ,
then press on the third icon on the top right bar,
then add the code to the file and save it
&ltsorry, I can't add images because my reputation is less than 10 :*(&gt

visual studio code not recognizing html files

VS code has suddenly stopped recognizing html files (the file icon is the default one for files with no extension)
all other file extensions work just fine
except for html
the tags still work but it won't autocomplete
Adding this to file extensions worked for me:
"files.associations": {
"*.html": "html"
}
In my case, for this problem the solution was to manually add *.html to files.associations, in user settings. Its unlogical but it seems that somehow the extension wasn't associated to the type of file. Now everything works perfectly...
Go to the settings (In mac it is Code -- > Preferences --> Settings)
In the search bar search for Association.
In Files:Associations click on Add items.
update key = *.html & Value = html
Below is the screenshot for reference.
I had the same issue but none of the other solutions worked for me!
You can try this:
Go to the path where the "settings.json" file exits, for my case the path is:
C:> Users> User123 > AppData > Roaming > Code > User > settings.json
Now, paste the code in the file:
"code-runner.executorMap": {
"html": "\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\"",
}
Now search for the "files.associations" section in your settings.json file:
As an example
Now if you have the "files.associations" section then just add the line there:
"*html": "html"
(don't forget to write a comma after a line if there are more lines in it)
or if you don't have a "files.associations" section, then copy paste the code there:
"files.associations": {
"*.rmd": "markdown",
"*html": "html"
},
I had the same problem in Windows 10 a few minutes ago:
Yeah, from the solutions above I did this but still had some errors:
File -- > Preferences --> Settings
In the search bar search for Files: Association.
In Files:Associations click on Add item button.
update Item = *.html & Value = HTML
As shown below:
When I saved, I got this error
Unable to write into user settings. Please open the user settings to correct errors/warnings in it and try again.
The problem is that terminal.integrated.shellArgs settings have been deprecated.
One of the answers here will help:
So I just had this problem and I figured it out the problem was from an extension that I installed which is the pyscript extension I disabled it and everything started to work again!
Well if you have pyscript extension installed, disable it. It has conflicts with html files I guess.
Or if you don't want to disable it just ctrl+shift+p then change language mode. Select configure file association for html.
This applies for any extension not just pyscript. For me it was pyscript

No HTML suggestions in Visual Studio Code

I've download the latest Visual Studio Code and am trying to write some HTML code. For example, <div>, <a>, <p> tags. However, there are no HTML suggestions in Visual Studio Code:
I've read this article and it says:
Visual Studio Code provides basic support for HTML programming out of
the box.
However, I've tried to install HTML extension:
In addition, I've turned on HTML5 suggestion in settings.json file:
{
"workbench.colorTheme": "Visual Studio Light",
"workbench.activityBar.visible": true,
"editor.multiCursorModifier": "ctrlCmd",
"window.zoomLevel": 0,
"html.suggest.html5": true,
}
Nevertheless, HTML, CSS suggestion does not work.
What can I do to code with suggestions?
I think the issue is that Visual Studio Code is not detecting the file type correctly. If you notice in these pictures, vscode has correctly detected that I am writing a html file by the icon <> beside the file name and the language indicator in the bottom right of the screen.
The language indicator most likely says plain text in your case. Click on it and a menu should appear at the top centre of the screen. Then try the following:
Enabling Auto Detect. I think this will be the first option.
Selecting Configure File Association for '.html'...
2 can also be accomplished by adding
"files.associations": { "*.html": "html" }
to your settings.
OR just add to settings.json (File -> Preferences -> Settings):
{
// Configure file associations to languages (e.g. "*.extension": "html"). These have
//precedence over the default associations of the languages installed.
"files.associations": { "*.html": "html" },
}
Just go to "File -> Preferences -> Settings"
Search for "Associations"
Check this image
Go to
File > Preferences > settings > Extensions > Emmet
Then click on
( C:\Users\Code\User\settings.json ) #
for reference
Add the following code:-
"emmet.triggerExpansionOnTab": true,
"files.associations": {"*html":"html"},
Save the file.

MediaWiki PopupPages extension not working

I've already installed the PopupsExtension ( https://m.mediawiki.org/wiki/Extension:PopupPages ) and the MagicNoCache that is needed to run the Popups. I also checked my Special:Version page and everything is installed.
Then I create a random page that I called MediaWiki:Example, but when I tried to called it using the Popups Extension with the following line: {{#popup:MediaWiki:PopupPage PopupPage | policy=cookie-out,groups-out}} there is only a grey page that says Article Missing.
Am I doing something wrong?
At the end I decided to modify my LocalSettings.php, and then insert my own JavaScript. In that script I inject my css and html.

how to enable html editor in eclipse JUNO for phonegap application?

I am using eclipse JUNO as Android Developer Tools, I am developing PhoneGap application, So I need mobile html but, It does not highlight the html syntax. So How to enable its **syntax highlighter and suggestions for html syntax. **
Eclipse Juno by default has the html tags enabled.
Try File-> New -> file -> FileName.html -> Finish.Now try pasting your code in this file.
Use Ctrl + Space for suggestions.
Thanks Every body I got my answer form this link
I summarized it
In Eclipse Juno Go ..
Step1:Help=>Install New Software..
Step2:Select the Juno repository (http://download.eclipse.org/releases/juno/) from the 'Work with:' menu:
Step3:In the search box, enter 'web' to filter the results, and select 'Web Page Editor':
Step4: Click Next:
Step5: Accept the terms and click Finish:
Step7: You might see this - just click OK:
Step8: Click Yes when ready:
If color of html files is not change(only black) So you have to go
step9: Window => Preferences menu as shown:
Then for both *.htm and *.html,
Step10: click on the 'HTML Editor' in the window below and click the 'Default' and 'OK' to apply.
Now open with HTML Editor
Check the Eclipse editor for HTML