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

Finer sign/keyword highlighting control #11

Open
shammellee opened this issue Jun 29, 2015 · 0 comments
Open

Finer sign/keyword highlighting control #11

shammellee opened this issue Jun 29, 2015 · 0 comments

Comments

@shammellee
Copy link

Currently, all signs and keywords use the same css classes span.sign and span.keyword, respectively. I'd like to have finer control to give code elements more specific styling.

A possible solution could be to specify the class to use for a specific code element in the config file…

# robodoc.rc

# syntax: <element(s)> <css_classname>
signs:
  {} sign_braces
  () sign_parens
  =  sign_assignment

# syntax: <keyword(s)> <css_classname>
keywords:
  new               keyword_new
  return            keyword_return
  if, elseif, else  keyword_conditional
  try, catch, throw keyword_exception

We could then customize those css classes…

/* stylesheet */
span.sign_braces{color:red}
span.sign_parens{color:blue}
span.sign_assignment{color:#FF00FF}

span.keyword_new{color:#00FFFF}
span.keyword_return{green}
span.keyword_conditional{color:yellow}
span.keyword_exception{color:red}
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

1 participant