R/get-ace-themes.R

Defines functions getAceThemes

Documented in getAceThemes

#' Get available themes
#'
#' Gets all of the available \code{themes} available in the installed version
#' of shinyAce. Themes determine the styling and colors used in the editor.
#' @author Jeff Allen \email{jeff@@trestletech.com}
#' @export
getAceThemes <- function() {
  themes <- dir(system.file("www/ace", package = "shinyAce"), "^theme-.*.js$")
  sub("^theme-(.*).js$", "\\1", themes)
}

Try the shinyAce package in your browser

Any scripts or data that you put into this service are public.

shinyAce documentation built on May 6, 2022, 9:07 a.m.