Home > Backend Development > PHP Tutorial > PhpStorm programming language switching_PHP tutorial

PhpStorm programming language switching_PHP tutorial

WBOY
Release: 2016-07-13 10:57:39
Original
1261 people have browsed it

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. PhpStorm IDE PHP code 插入一段HTML代码,其中有部分PHP变量和转义字符串。 $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: PhpStorm programming language switching_PHP tutorial We can also create a string and use language switching (Alt+Enter) to manually specify the string to another language: PHPStorm 使用语言切换(Alt+Enter)手动指定字符串到有另外的的语言 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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632083.htmlTechArticleI have recently encountered some problems with PhpStorm programming: When using the Zen Coding plug-in, PHPStorm is not as casual as Notepad++. PHPStorm can only be used when editing files recognized as HTML...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template