Searched tag: HTML

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
    if i < 50:

# This is the end of the code

Related articles

Control LEDs on Webpage

  »My Projects



This project is coming soon. 


Project Goal:

1. The Raspberry Pi should be able to read data from this blog post to light on the I/O LEDs of the Raspberry Pi Board.

    LED_DATA: "1, 1, 1, 1, 1, 0, 1, 0"

    LED_EXIT: "0"

    The LEDs should be lighted according to the data shown above.


2. The Python program on the Raspberry Pi should immediately terminated whenever "LED_EXIT" is set to "1".

Related articles