You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove php-mode-extra-constants variable and functions
In WebMode, the `web-mode-extra-php-constants` variable has already
been removed, so it doesn't actually work. Also, the "not-extra"
constant was removed from PHP Mode in 2014, and it was out of the
role.
This function is deleted before rewriting the constant display
pattern. Add If you want to highlight keywords, we provide tips on how
to add keywords by your own hands.
Copy file name to clipboardExpand all lines: README.md
-8Lines changed: 0 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -271,14 +271,6 @@ With this style method call chains can be formatted with indented continuation a
271
271
272
272
This style is used widely throughout Symfony2 source code even if it is not explicitly mentioned in their conventions documents.
273
273
274
-
### Extra Constants
275
-
276
-
If you commonly use a framework or library that defines a set of constants then you may wish to customize the value of `php-extra-constants`. It is a list of strings that PHP Mode will treat as additional constants, i.e. providing them the same level syntax highlighting that PHP Mode uses for built-in constants.
277
-
278
-
### Web Mode Constants and Keywords
279
-
280
-
If you use [Web Mode][] then PHP Mode will attempt to use any additional PHP constants and keywords that Web Mode allows you to define.
281
-
282
274
### Avoid HTML Template Compatibility
283
275
284
276
Many developers use PHP Mode to edit pure PHP scripts (e.g. files with only PHP and no HTML). A basic compatibility layer with HTML has historically been part of PHP Mode but it does not work perfectly and can cause some bad side effects such as slowness and incorrect font locking. Configuring the `php-template-compatibility` property with a `nil` will cancel any attempt of HTML compatibility. [Web Mode](http://web-mode.org/) is a great alternative to PHP Mode if you need to work with PHP scripts that do contain HTML and other markup.
0 commit comments