Bug #80793 [Nab]: highlight_string

From: Date: Wed, 24 Feb 2021 04:13:24 +0000
Subject: Bug #80793 [Nab]: highlight_string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232371@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80793&edit=1 ID: 80793 User updated 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 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? Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#232371) next »