Is there a way to show only leading spaces of a string? I was looking for a guide to lstlisting, but it does not seem to support this feature. I use a code type, using lstlisting with "showpaces" enabled, it shows all the spaces in the code that confused my eyes (and probably others, I think). Since the code is a layout, I want to show only the spaces of each line to give an idea of what the layout means to the reader. Does anyone know a job? Thank.
I can't find a solution ... Ugly ugly ugly ugly workaround:
\newcommand{\s}{\phantom{\ }}
and use \sspace instead in your code.
\s
Do not go down. I will delete if something works out. :-)
Source: https://habr.com/ru/post/1751958/More articles:lucene fuzzy search lazy? - luceneAn error occurred while trying to compile the latex document. Where can I find the report output file? - compilationWhy can't Google Reader detect feed for website? - rssPHP or ASP, what should I stick to? - phpmin-width, max-width, width. Ничего не работает в IE8 на теге body - htmlC # pass by value - c #Passing a structure with multiple entries in C ++ - c ++Drupal: where can I get $ content Array in my topic? - drupalHow can I make jQuery scroll a div (another div) by mouse over the link? - jqueryPython "denormalize" unicode combining characters - pythonAll Articles