Recently I encountered some PhpStorm programming problems: When using the Zen Coding plug-in, PHPStorm is not as casual as Notepad++. PHPStorm can only use Zend Coding when editing files recognized as HTML. When programming in PHPStorm, there will be corresponding prompts about SQL statements for database operations. So I searched PhpStorm to see if I could switch a certain piece of code to other programming languages when writing PHP code. In many projects, we often want to switch programming languages when programming. Usually we need to embed a different programming language in the string of code. For example: embed an HTML fragment in PHP code, if you also encounter a similar situation. $htmlFragment The variable is a piece of HTML code, which contains some PHP variables and escaped strings. In this case, HTML code prompts cannot be used well. For example,
cannot be automatically closed directly. It is very laborious to type on the keyboard one by one. PhpStorm programming language switch PhpStorm recognizes these situations and provides us with a full-featured HTML editor to edit existing strings: We can also create a string and use language switching (Alt+Enter) to manually specify the string to another language: This is a great little feature that completely improves programming efficiency. And this feature works in all other languages.This feature completely facilitates my use of Zen Coding when editing PHP code