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

StyledText plugin #21

Open
Sviests opened this issue Nov 7, 2016 · 1 comment
Open

StyledText plugin #21

Sviests opened this issue Nov 7, 2016 · 1 comment

Comments

@Sviests
Copy link

Sviests commented Nov 7, 2016

Hi!

I am trying to change the colour of specific parts of text in a line using your StyledText plugin, but I am only able change it`s background. Is it possible to use the StyledText plugin as a RAP alternative for the RCP StyledText widget or does it not have the functionality?

What I`m trying to do is colour code specific ranges of chars in specific lines of text on a widget that shows text, sort of like console output.

@amlajmi
Copy link
Contributor

amlajmi commented Nov 7, 2016

For now, only a subset of the RCP styledText API is available on RAP. DSL Forge does the default syntax coloring (keywords, strings, comments, numbers) of language grammars, but if you want to specify the ranges yourself, you can do it only in JavaScript, following the official ACE documentation, see a usage example here.

If you are interested in the styled text widget and don't need a language grammar, I'd recommend you use the styled text repository, which is going to be incubated under Eclipse RAP, the initial code is available here,

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

No branches or pull requests

2 participants