Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add syntax highlighting #76

Open
jcubic opened this issue Jun 12, 2022 · 1 comment
Open

Add syntax highlighting #76

jcubic opened this issue Jun 12, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@jcubic
Copy link
Owner

jcubic commented Jun 12, 2022

Features needed:

  • Regex based
  • custom function
  • specific for different types of input (prompt, cmd, echo, animation)
@jcubic jcubic added the enhancement New feature or request label Jun 12, 2022
@jcubic
Copy link
Owner Author

jcubic commented Dec 27, 2023

Here is an example of a Gaiman code:

import jQuery
import RegExp

let mapping = [
    ["factorial", "white"],
    ["interpreter", "red"]
].map(lambda(pair)
    let token = pair[0]
    let color = pair[1]
    pair[0] = new RegExp("(" + token + ")", "gi")
    pair[1] = "[[;$color;]$1]"
    return pair
end).forEach(lambda (formatter)
    jQuery.terminal.new_formatter(formatter)
end)

The code needs to be way simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant