FolkComputer / FolkComputer/folk
No way to specify text colors, sizes, etc.
- Dominant language
- C
- Stars
- 298
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
In the Discord @zspotter suggested something like:
```
Display::text $x $y $angle {
One fish, two fish, [bg red] red fish, [bg blue fg yellow] blue fish
}
```
I like this idea of an inline DSL for transforming sections of text ... could even do:
---
`[fsize 10] bigger text`
# bigger text
---
---
`[bg red fg green]`
(apologies for the garish colors, it's just to demonstrate the point)
----
It's worth asking the question: how useful is making our own DSL versus adopting HTML parsing? e.g. for the above:
- `
bigger text
`- - `green text` OR `green text`
The obvious answer is: the web is document based + has a lot of baggage & even comparing the previous examples with the pseudo-HTML examples, I notice the pHTML examples take a lot more text to write how. Hmmmm, will keep thinking, feel free to comment with alternative ideas or extensions to this little DSL!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.