Skip to content

Conversation

@AJGeel
Copy link
Contributor

@AJGeel AJGeel commented Nov 15, 2024

What

  • Add a code syntax highlighting option to the console screen
Screenshots/Video
Screen.Recording.2024-11-15.at.13.47.32.mov

Why

It makes the generated Taskfile easier to read.

@AJGeel AJGeel force-pushed the syntax-highlighting branch from ac28a1a to f07caae Compare November 15, 2024 12:49
@AJGeel
Copy link
Contributor Author

AJGeel commented Nov 15, 2024

Not sure this is something you want or need, but I threw together a quick POC for syntax highlighting without having to pull in external dependencies.

We could add regex tests for syntax highlighting cases you'd see in your IDE or terminal, and match the colour scheme as presented in the .Taskfile itself.

@rick-nu
Copy link
Member

rick-nu commented Nov 15, 2024

@AJGeel let me be really clear on this; we NEED this 🤩 In my opinion, we can already merge this as is, and we can add more tweaks to it as we go. I would love to expand/add to the highlights too.

I really like how you've done this. Amazing! 🔥

Let's get rid of the "clicky toggle" already too 😇

@AJGeel
Copy link
Contributor Author

AJGeel commented Nov 15, 2024

Cool! I'll finish up and make this merge-able, feel free to add to it after :)

@AJGeel AJGeel marked this pull request as ready for review November 15, 2024 17:09
@AJGeel
Copy link
Contributor Author

AJGeel commented Nov 15, 2024

@rick-nu review/merge at will!

Copy link
Member

@rick-nu rick-nu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely lovely! ❤️

@rick-nu rick-nu merged commit a7ab371 into production Nov 15, 2024
1 check passed
@rick-nu rick-nu deleted the syntax-highlighting branch November 15, 2024 18:59
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

Successfully merging this pull request may close these issues.

3 participants