Opened 4 years ago

# output with special characters (help or feature request)

Reported by: Owned by: ctrudeau chr(64) arsensa.com nmadura normal ShellExampleMacro normal 0.11

Love the plug-in, helps my documentation a lot. I have run into the situation where the output of a command contains hits for the regexes. I took a quick look at the code and it doesn't look like there is a way of escaping it. If I missed something, drop me a line, if I'm right, this would be a nice feature.

For example:

{{{
#!ShellExample
$git status # On branch develop # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: one }}}  doesn't see the lines beginning with "#" as output. I tried putting spaces in, or using the "$\$". Interestingly, prefixing it with "!" works but then the "!" symbols are included in the output. So, maybe the feature could be, "if starts with '!' and not '!!' treat as output -- but don't show the '!'. With '!!' process as normal for the rare case of a non-output line beginning with '!'.

### comment:2 Changed 4 years ago by rjollos

• Description modified (diff)