I'd like to redefine the \verb|...| command so that it had a light-gray background and a little bit darker border around it, and a little bit of padding to make this background "box" noticable. Anyone knows how to do that? If that is not possible to do easily, can I define a new command that acts like \verb|...| and does that?
|
|
||||
| show 1 more comment |
Update 2011-07-27As promised the new version of my For the requested colored background and frame use the
The Example:
Use the The package already provides You could also use the |
|||||||
|
|
I've modified the standard
|
|||||||||
|
|
Here a solution which works with
|
|||||||||
|

\verb<char>...<char>, e.g.\verb|...|or\verb{...{, not\verb{..}. – Martin Scharrer♦ Jul 5 '11 at 20:00\verb|..|myself all the time but for some unknown reason wrote{...}in the question – Peteris Krumins Jul 5 '11 at 20:03xparsedoesn't support a verbatim argument type. – Martin Scharrer♦ Jul 5 '11 at 20:06xparsedoes not deal with verbatim material (essentially, a truly general solution is not available, as TeX's parsing approach makes certain cases impossible to handle with generalised code). – Joseph Wright♦ Jul 5 '11 at 21:12\verbagain to improvenewverbsand will have to at least provide two ways: one which really only provides the verbatim characters and one which provides them in a typeset-able form (e.g. using\@noligs). – Martin Scharrer♦ Jul 5 '11 at 21:18