Searched tag: CSS

Insert highlighted code with CSS and JS on your website

  »My Projects

It is a reasonable solution to use the embedded editor of Joomla! to highlight any code on an article. With simply one click on Joomla's TinyMCE Editor, it allows you to insert any highlighted code from any programing languages into a Joomla! Article.

Here goes some sample Python codes,

 

Code 1

print("hello world!")

 

Code 2

import love from me

love1 = love.joomla()
for i in range(5):
    print("No. " + str(i) + str(love1))

 

Code 3

# This is a comment
i = 100
while True:
    i -= 1
    print(i)
    if i < 50:
        break

# This is the end of the code

Related articles