How do I fix comments problem in PhpStorm? - phpstorm

PhpStorm do strange comments like <!-- adress--> with many spaces before open tag and comment word.
How do I fix it?

Related

Superscript characters in Prestashop 1.7 product name

One of the products in my website has a superscript character in the product name. Since Prestashop does not allow HTML tags inside product names, I need to find a way to display the superscript character correctly in the product page.
While searching around, I found somebody with a similar problem: https://www.prestashop.com/forums/topic/543339-how-to-make-superscript-format-%C2%AE-symbol-in-category-name-and-product-name/. They seemed to resolve the issue by modifying a line of code in the product.tpl file of their theme:
<h1 itemprop="name">{$product->name|escape:'html':'UTF-8'|replace:'character':'<sup>character</sup>'}</h1>
I tried this solution, but instead of replacing only the one character with its superscript version, the theme displays the entire string as plain text, including the sup tags. Cleared the cache, set to force recompile template files, nothing.
Clearly the "replace" command does work, but I can't figure out why the sup tags don't. Does anybody know a way to solve this problem?
Use the unicode equivalent of the superscript digits instead.
See https://unicode-table.com/en/sets/superscript-and-subscript-numbers/

How to find missing closing bracket in HTML tags?

Weird case from a project I recently took over.
There are some HTML tags that are missing their closing '>'
e.g.:
<div
class="example"
</div>
This is currently not breaking anything in Chrome but when viewed in IE it has issues.
I've tracked down a number of mistakes with it (looked like copy paste work with an iron-ajax block) but would really like a tool that could help me find other places this is happening.
I currently use Atom but would be willing to use anything to track this down.
you can use the below package for Atom to validate HTML
https://atom.io/packages/w3c-validation
HTMLhint(https://github.com/tcarlsen/atom-htmlhint)
https://github.com/atom/bracket-matcher
HTML Tidy? Or any of a number of other HTML validators or linters.

Angular2 & Atom - Using Question Mark Syntax '?' in HTML causes HTML tag discoloration

I'm not sure if this is the right place for this question but there seems to be an atom-editor tag and none of the related questions I've have been removed so here goes.
When I use the Safe Navigation / Null Property Operator (?.) it messing up the rest of my html
But this is what I mean
Before
After
This makes it harder on the eyes when I use question marks and I'd like to be able to use them without the discoloration of the everything below the ?'s
I assume the issues lies with one of the following:
My Syntax Theme
I'm using the Lucario Theme in the example and tried changing it out with other themes but this doesn't seem to be the issue.
The atom package language-html
I think this is the issue because it seems to be the part of Atom that supports the HTML Language it's self. I thought this could be corrected in the Non Word Characters option
so I tried the default above and tried removing the ? from Non Word Characters option like
But it didn't work and I also restarted atom to make sure but nothing seems to work.
Any tips, suggestions or fixes for my problem?
Thanks

Can Vim highlight matching HTML tags like Notepad++?

Vim has support for matching pairs of curly brackets, parentheses, and square brackets. This is great for editing C-style languages like PHP and JavaScript. But what about matching HTML tags?
Notepad++ has had this feature for as long as I’ve been using it. Being able to spot where blocks of HTML begin and end is very useful. What I’m looking for is something like this for Vim (see the green div tags):
A bonus feature: highlighting unclosed HTML tags, like the red tag in the above screenshot.
matchit has been proposed as the next-best-thing, but it requires an extra keystroke to use its functionality. I’d like be able to see where the blocks of HTML begin and end without an extra keypress.
I’ve trawled the internet to find something like this for Vim. Apparently, I’m not the only one, according to two other StackOverflow questions and a Nabble thread.
I’ve almost resigned myself to Vim not being able to visually match HTML tags. Is it possible for Vim to do this?
Addendum: If it is not currently possible to do this with any existing plugins, does any Vimscript wizard out there have any pointers on how to approach writing a suitable plugin?
I had to work with some HTML today so thought I would tackle this. Added a ftplugin to vim.org that should solve your problem.
You can get it here on vim.org.
You can get it here on github.
Hope it works for you. Let me know if you have any problems.
Greg's MatchTag.vim plugin is awesome, but I wanted something more. I wanted the enclosing tags to always be highlighted, not just when the cursor is on one of the tags.
So I wrote MatchTagAlways which does everything that Greg's MatchTag does and also always highlights the enclosing tag, no matter where the cursor is in the code. It also works with unclosed tags and HTML templating languages like Jinja or Handlebars.
Here's a GIF showing it in action:
I came here looking for matching html style angle brackets in Vim. This seems to work:
:set mps+=<:>
:help matchpairs

Can any Texter users answer this question?

I have recently started using the excellent Texter. I wanted to set up a shortcut for creating html comments. However that it seems that the exclamation character (!) has special significance in the program, and so does not come out in script mode.
This character is of course required for...<!-- html comment here -->
Here is the code I tried to create the shortcut...
{HOME}<!-- {END}{BS} -->
Just wondering if there is a way of getting around this problem??
Cheers
"To send the literal forms of the special characters above, just wrap them in the same curly brackets." So something like {HOME}<{!}-- {END}{BS} -->. From Lifehacker.