Skip to content

allow users to set more highlighting preferences #15646

Description

@jmbarbone

Allow additions (or changes) to (some) variables defined in https://github.com/rstudio/rstudio/blob/62fa5479efcc6aa675e5d28a5b7b24beaa698f30/src/gwt/acesupport/acemode/r_highlight_rules.js

I think specifically allowing modifications to special functions could be most useful.

var specialFunctions = lang.arrayToMap([
"return", "switch", "try", "tryCatch", "stop",
"warning", "require", "library", "attach", "detach",
"source", "setMethod", "setGeneric", "setGroupGeneric",
"setClass", "setRefClass", "R6Class", "UseMethod", "NextMethod"
]);

Activity

  1. added
    new
    on Jan 25, 2025
  2. ronblum commented on Jan 27, 2025

    @ronblum
    Contributor

    @jmbarbone Thank you for the suggestion! We'll review it as we continue work on RStudio.

  3. added
    layout
    and removed
    new
    on Jan 27, 2025
  4. ronblum commented on Feb 10, 2025

    @ronblum
    Contributor

    @jmbarbone What functions in particular are you interested in adding?

  5. jmbarbone commented on Feb 10, 2025

    @jmbarbone
    Author

    @ronblum , I have a little hack that adds some (maybe more than some) personal preferences:

    https://github.com/jmbarbone/rstudio_atom_theme/blob/4711bef16b985bf7f1ac3d1b5d5f628991f4f599/add-highlighting#L11-L113

    Some of the base specialFunctions and the S7 specialFunctions and builtInConstants would probably be more generally useful.

    Although it would be nice to have more control over these, a way for users to use set their own preferences, just adding a few more would also be very nice.

  6. added this to the Backlog milestone on Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementlayout

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions