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)
}
trestletech/shinyAce documentation built on Feb. 3, 2025, 4:30 a.m.