Edit report at https://bugs.php.net/bug.php?id=80793&edit=1
ID: 80793
Comment by: icarosnet at gmail dot com
Reported by: icarosnet at gmail dot com
Summary: highlight_string
Status: Not a bug
Type: Bug
Package: Unknown/Other Function
Operating System: all
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
I am interested in this feature to run in cli, because i want implement in other of library: https://github.com/arcanisgk/BOH-Basic-Output-Handler
currently only works on web, but if "highlight_string" works correctly in CLI I can extend
the support.
Previous Comments:
------------------------------------------------------------------------
[2021-02-24 04:13:24] icarosnet at gmail dot com
i have check the php.init setting and only have this commented:
; Colors for Syntax Highlighting mode. Anything that's acceptable in
; <span style="color: ???????"> would work.
; http://php.net/syntax-highlighting
;highlight.string = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.default = #0000BB
;highlight.html = #000000
the problem, not the limitation that php has in CLI is that "highlight_string" returns
html code even when run from a terminal. is there a way to do it or recreate it for CLI?
------------------------------------------------------------------------
[2021-02-24 03:59:39] requinix@php.net
Check your highlight.* php.ini settings.
------------------------------------------------------------------------
[2021-02-24 03:57:34] icarosnet at gmail dot com
Description:
------------
hello any way to get highlight_string working in CLI?
Test script:
---------------
highlight_cli
Expected result:
----------------
highlight
Actual result:
--------------
not exist
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80793&edit=1