How do you post code in a post?

Recommended Answers

All 3 Replies

At the top of the DANIWEB editor, look for </> which is third from the left. Works for me.

Or if you are preparing the post in a text editor, select the entire block of code and indent it four spaces.

You can also post code as a text file attachment, but it won’t be highlighted or get line numbers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.