can't I have any indentation in Code Highlighter?(shortcode)
-
I want to post source code(python) and I found that I can post source code with shortcode(code highlighter). yes, I can highlight source code but indentation doesn’t work. you know indentation is very important in Python.
How can i indent in code highlighter?The blog I need help with is: (visible only to logged in users)
-
Hi there,
To post source code (for viewing only) you have to use the code tag. Read more on how to use this tag here:
https://en.support.wordpress.com/code/posting-source-code/ -
Hi fstat,
I already know using the code tag to post source code.
One thing that i wonder is indentations.
i put some spaces in front of lines but it didn’t work on code tag (view page). -
For the indentation (tabs or spaces) to work, you have to insert the code in the HTML editor. To switch to the HTML editor click the HTML tab at the upper-right corner of the post editor. Here are further instructions:
- The topic ‘can't I have any indentation in Code Highlighter?(shortcode)’ is closed to new replies.