How to make design like this?

How do I add line number of texts? and if possible then I also want to add different colors on text like this (like pink color for variables, green for codes etc.)

@ayanokoji try this extension

thanks but i found lots of issue in this extension

Like what?