You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/11/26 18:34:58 UTC
[GitHub] [netbeans] noelma opened a new issue, #5010: Detection of syntax highlighting when using heredoc
noelma opened a new issue, #5010:
URL: https://github.com/apache/netbeans/issues/5010
### Description
The HereDoc syntax in PHP allows you to specify the string type.
I would like Netbeans to detect the type of string and apply syntax highlighting.
### Use case/motivation
If the string type starts with a type known to netbeans, apply syntax highlighting to the string
Currently:
![Capture d’écran du 2022-11-26 19-16-22](https://user-images.githubusercontent.com/10517497/204103817-d69dedc0-809e-4830-b38b-b3a81ac59b56.png)
Goal:
![Capture d’écran du 2022-11-26 19-16-39](https://user-images.githubusercontent.com/10517497/204103855-f328fbee-6f47-49cd-93a4-2f2d256d5fc7.png)
### Related issues
_No response_
### Are you willing to submit a pull request?
No
### Code of Conduct
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] the-liquid-metal commented on issue #5010: [PHP] Detection of syntax highlighting when using heredoc
Posted by GitBox <gi...@apache.org>.
the-liquid-metal commented on issue #5010:
URL: https://github.com/apache/netbeans/issues/5010#issuecomment-1332548241
Lovely proposal, very useful for inline templating. I usually use phpstorm to do this, and i wish netbeans had this feature.
Some considerations should be included:
* including [nowdoc](https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.nowdoc)
* since sql has many dialects, popular dialect should be included (MYSQL, SQLSERVER, etc), rather than adding a note comment above the statement to clarify which dialect is.
* including [Doctrine](https://www.doctrine-project.org/projects/doctrine-orm/en/2.13/reference/dql-doctrine-query-language.html)
* including popular language (Java, C#, etc). and most importantly: PHP ❤️
This is the first step towards becoming a more powerful feature. I hope netbeans won't stop here, considering phpstorm has very solid feature beyond syntax highlighting: syntax validation and connection to datasources.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] mokraemer commented on issue #5010: [PHP] Detection of syntax highlighting when using heredoc
Posted by "mokraemer (via GitHub)" <gi...@apache.org>.
mokraemer commented on issue #5010:
URL: https://github.com/apache/netbeans/issues/5010#issuecomment-1443611404
I just stumbled across this feature request.
I suggest adding nowdoc and heredoc. Maybe it is possible to start the specific engine for the language, so we get syntax highlighting and code completion.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] NReib commented on issue #5010: [PHP] Detection of syntax highlighting when using heredoc
Posted by "NReib (via GitHub)" <gi...@apache.org>.
NReib commented on issue #5010:
URL: https://github.com/apache/netbeans/issues/5010#issuecomment-1443515152
I also support this feature request.
The languages suggested by noelma could be a good starting point for having this feature. For me it would be ok to keep it at that, we don't need to have every language and dialect available by default.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists