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

Support for Styles #40

Open
patrickomatic opened this issue Nov 13, 2023 · 0 comments
Open

Support for Styles #40

patrickomatic opened this issue Nov 13, 2023 · 0 comments
Labels
enhancement New feature or request language change Changes the way a user writes csv++

Comments

@patrickomatic
Copy link
Owner

patrickomatic commented Nov 13, 2023

It would be great to define "styles" up in the code section:

header := [[t = bold / halign = center / valign = center / fs = 20]]

and then use them in the CSV section:

...
---
[[#header / var=foo]],bar,baz

Outstanding Questions

  • I like the #header syntax using the hash but does it conflict with the future plans to make the row comment-out-able? We'd use the # for that. But it would have to be the first non-whitespace character on the line, so it doesn't really conflict per-se
  • For the definition syntax foo := [[ ... ]] - can we think of anything better? It seems kinda unsymmetrical that we use [[ and not ![[ but whatever I guess...
@patrickomatic patrickomatic added enhancement New feature or request language change Changes the way a user writes csv++ labels Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request language change Changes the way a user writes csv++
Projects
None yet
Development

No branches or pull requests

1 participant