I am grateful for your dedication to PHP. The format of this video was quite nice. I would like to see more of it. And the pain with the existing, commonly used code-highlighters I share.
You could just highlight keywords and php built-ins first, add some id or state to represent it has already been highlighted, and then do the same but for user defined tokens, strings, variables, function names, arguments etc...
Sooo * pure AST are no-go, * pure regex is no-go That's why you created a custom intermediate AST based on regex? makes sense ))) no offence )) great package, interesting implementation, it was just hard to pass on this irony
I am grateful for your dedication to PHP. The format of this video was quite nice. I would like to see more of it. And the pain with the existing, commonly used code-highlighters I share.
It is very useful. Thanks for sharing the code highlighter with us.
Been meaning to watch this for a while. Good stuff!
SqlInjection? Sounds like a security vulnerability to me 😂😊
I'm glad someone noticed it 😁
This is really cool, nicely done!!
Great video and tool. Will try it 🙏
Haha I was just watching your video about Laravel Reverb when you commented on this one 😁
🤣 🤝
@@phpannotated
Lovely stuff, thanks!
If you want to use ast you could use tree-sitter.
You could just highlight keywords and php built-ins first, add some id or state to represent it has already been highlighted, and then do the same but for user defined tokens, strings, variables, function names, arguments etc...
This is awesome
After days of frustration with shiki-php, the google gods put you in my path. Thank you!
Love it! Might try to create a WordPress plugin for it if I get the time
Let me know if you do! I'm happy to mention it in the readme :)
❤❤
why don't you just replace from the end of the string instead of extra offset calculations?
Sooo
* pure AST are no-go,
* pure regex is no-go
That's why you created a custom intermediate AST based on regex? makes sense )))
no offence )) great package, interesting implementation, it was just hard to pass on this irony
Why are you forcing this posh accent?
It's just how I talk 😅