Opened 13 years ago
Last modified 13 years ago
#10111 new enhancement
output with special characters (help or feature request)
Reported by: | ctrudeau chr(64) arsensa.com | Owned by: | Nathaniel Madura |
---|---|---|---|
Priority: | normal | Component: | ShellExampleMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description (last modified by )
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 '!'.