Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

alierffanmanesh's avatar

How to highlight code on the server side with PHP in Laravel How to highlight code for my site same laracasts I need help usign highlight code or markup my codes in my site same laacasts

How to highlight code on the server side with PHP in Laravel How to highlight code for my site same laracasts I need help usign highlight code or markup my codes in my site same laacasts

0 likes
16 replies
alierffanmanesh's avatar

How to read code in conversation tag ``` and tag @ and other tags that using in laracasts in server

martinbean's avatar

i want answer

@alierffanmanesh …and I want a million pounds.

The thing about development is, sometimes you have to write some code. You’re not always going to find a package that does exactly what you want and that you can just drop in your project and it’ll magically work.

So put some effort in yourself and stop expecting people to give you the exact solution when you’re posting single sentences over and over.

automica's avatar

@martinbean I have your million pounds for you but you can only collect it from me once you have worked out what the question is in this thread.

Sinnbeck's avatar

I am currently working on a package that does exactly this, as I needed it for work. It will be put on my github page once it is ready for use. It takes markdown and converts it to html with classes injected, and code highlighting

Sinnbeck's avatar

A small preview of what I am working on. Here I am testing it out with livewire. It is all php (no javascript except livewire), and everything updates in realtime.

Markdown to html

1 like

Please or to participate in this conversation.