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

Need to add more styles besides "default" #2

Open
JnyJny opened this issue Dec 30, 2019 · 0 comments
Open

Need to add more styles besides "default" #2

JnyJny opened this issue Dec 30, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@JnyJny
Copy link
Owner

JnyJny commented Dec 30, 2019

Styles live in YAML files: pyliter/resources/*_style.yaml

Styles are YAML formatted files describing nested dictionaries with the following top-level keys:

  • DEFAULT
  • OP
  • KEYWORD
  • STRING
  • NAME
  • BUILTIN
  • NUMBER
  • SELF
  • LVAL
  • FNAME
  • CNAME
  • INAME
  • COMMENT
  • DOCSTRING
  • PRIVATE

Valid keys for the sub-dictionaries are:

  • font_name : string
  • font_size : integer
  • background_color : color name, hex string, tuple
  • color: color name, hex string, tuple
  • underline: color name, hex string, tuple
  • bold: boolean

The pyliter.style_book.StyleBook class provides access to the styles.

There is a default style default_style.yaml but it's lonely and wants some friends.

@JnyJny JnyJny self-assigned this Dec 30, 2019
@JnyJny JnyJny added the enhancement New feature or request label Dec 30, 2019
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