Homec4science

Allow escaping of formatting sequences with a backslash

Authored by Edward Speyer <edward@fb.com> on Aug 2 2011, 18:22.

Description

Allow escaping of formatting sequences with a backslash

Summary:
Say "\__init__.php", unless you actually want the output to be
"<b>init</b>.php".

Test Plan:
Ran "arc help liberate", and tested with:

// not underlined
echo(phutil_console_format("\__init__.php\n"));
echo(phutil_console_format("lol \__init__.php\n"));

// underlined
echo(phutil_console_format("__init__.php\n"));
echo(phutil_console_format("lol __init__.php\n"));

Reviewed By: epriestley
Reviewers: epriestley
CC: aran, epriestley, edward
Differential Revision: 766

Details

Committed
Edward Speyer <edward@fb.com>Aug 2 2011, 19:10
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU1032d74db0e1: Fix an issue in ExecFuture where stdin will be prematurely discarded
Branches
Unknown
Tags
Unknown

Event Timeline

Edward Speyer <edward@fb.com> committed rPHU0acf708b9b0f: Allow escaping of formatting sequences with a backslash (authored by Edward Speyer <edward@fb.com>).Aug 2 2011, 19:10