-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add more custom format specifiers #85
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This is great. Could you add some tests for guid.ts
changes, though? I'll make a few adjustments to the docs - I should've documented that better in the README.md
when those changes were added - but will then go ahead and merge this.
I added tests, see this commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I'm going to clean up docs a little - something I should've done before - and get this merged.
dd33e89
to
09c9802
Compare
09c9802
to
9a6970f
Compare
v1.9.0 with this change has been released. Thank you again! |
Add
{x0}
through{x10}
custom format specifiers to enable finer format customizations.Also add a
{nl}
specifier to insert a newline for multiline formats.Example custom format:
// __NAME__ {B}{nl}const __NAME__: GUID = GUID {data1: 0x{x0}, data2: 0x{x1}, data3: 0x{x2}, data4: [0x{x3}, 0x{x4}, 0x{x5}, 0x{x6}, 0x{x7}, 0x{x8}, 0x{x9}, 0x{x10}]};
Result: