Tomáš Procházka created NETBEANS-5096:
-----------------------------------------
Summary: Wrong formatting after open tag in executable script
Key: NETBEANS-5096
URL: https://issues.apache.org/jira/browse/NETBEANS-5096
Project: NetBeans
Issue Type: Bug
Components: php - Formatting & Indentation
Affects Versions: 12.2
Reporter: Tomáš Procházka
Assignee: Tomáš Procházka
PHP script can be made to be directly executable when first line contains
string "#!" followed by path to PHP executable (also called shebang).
{code:php}
#!/usr/bin/php
<?php
echo "Hello World!\n";
{code}
In this case blank lines after PHP open tag are applied not from "After Open
Tag" but from "After open tag in HTML".
Steps to reproduce:
# Open Options and in Formatting > PHP > Blank Lines
# Set "After Open Tag" to 1
# Set "After Open Tag in HTML" to 3
# Create new file with content above
# Format file - there will be three blank lines after "<?php" and not one as
expected
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists