So if you are looking for a way to highlight codes in your blog or website to make it more user-friendly for your readers and visitors, so let me tell you how. If you are on self hosted WordPress then you can simply use a Syntax Highlighter plugin.
But if you have a static website or have a website (or blog) where you don’t have much solution to add highlighted syntax or you very rarely display codes so you can try SyntaxHighlight.In. It is an online tool which lets you highlight 15 different kinds of codes.
All you need to do use copy-past (or drag and drop) your code on their website, select if you want to add collapse (show/hide) option, which code language you have given, which kind theme (looks) you want to give, do you want to show line number, etc.