Closed caprinux closed 2 years ago
Thanks for the suggestions! Looks better now :)
Looks good!
@caprinux Have you thought about using Pygments
for a more granular control over the produced C code ? In gef-extras
we don't worry too much about adding external librairies, and this case seems like a perfect candidate for Pygments.
@hugsy Yes I was actually thinking about it but was worried about the external library part of it. I've never worked with pygments before but I'll go figure it out :)
No problem at all, that's what the repo is for :) just remember to add it to the requirements.txt
file
We can squash and merge this since it’s a nice simple improvement and add syntax highlighting later
On Wed, Oct 27, 2021 at 9:17 PM hugsy @.***> wrote:
No problem at all, that's what the repo is for :) just remember to add it to the requirements.txt file
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/hugsy/gef-extras/pull/43#issuecomment-953424146, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADZNHTXUXUXD5GFAEI3YS3UJCQC5ANCNFSM5GZKTDRQ .
-- Thanks,
G
Changelog:
Please let me know if there's anything I could improve on :)
I'll leave some images I added to the docs here for viewing
--
--
Addresses #42 Tested on python versions 2.7.18 and 3.11.
rstrip
instead ofstrip
to prevent stripping indentationretdec GEF output before:![image](https://user-images.githubusercontent.com/76640319/138998848-2baee65d-b39f-46be-867d-a9eb93e6ebd3.png)
retdec GEF output after:![image](https://user-images.githubusercontent.com/76640319/138998787-eb4e4392-c335-4ee5-91ed-e16be92b7964.png)