🔍 An RStudio addin slash regex utility belt
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
835B

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/run_regex.R
  3. \name{wrap_result}
  4. \alias{wrap_result}
  5. \title{Wrap matches in HTML span tags to colorize via CSS}
  6. \usage{
  7. wrap_result(x, escape = FALSE, exact = FALSE)
  8. }
  9. \arguments{
  10. \item{x}{Individual list item in list returned by \code{\link[=run_regex]{run_regex()}}}
  11. \item{escape}{Escape HTML-related characters in \code{text}?}
  12. \item{exact}{Should the regex pattern be displayed as entered by the user
  13. into R console or source (default)? When \code{TRUE}, regex is displayed with
  14. the double \code{\\\\} required for escaping backslashes in R. When \code{FALSE},
  15. regex is displayed as interpreted by the regex engine (i.e. double \code{\\\\}
  16. as a single \code{\\}).}
  17. }
  18. \description{
  19. Wrap matches in HTML span tags to colorize via CSS
  20. }
  21. \keyword{internal}