
- Lessons that display code
- Aug 22, 2008
- Category: Reference & Education
- Classroom: Clivir
Got code?
So if you got a lesson on html, php or some other code it is likely you will want to display code.
Normally displaying code is best done using the pre tag
How to display the code at Clivir
We are using an editor and a filter at Clivir and this alters the way we can use and then show code. So you will need to jump through a few hoops to show your code..sorry.
Use the Source button to get to the source code of your lesson.
![]()
Then place all code for display with pre tags like this:

This code will not display in the WYSIWYG part of the editor but will be visible in the source and when viewed as lesson.
The code will be given line numbers to assist with code descriptions.
<title>Edit lesson: Lessons that display code</title> <base href="http://www.clivir.com/" />
There are a few bugs. One of which is re-submitting lesson after edit will cause the lines of code to become one. We do hope to have a better workaround for those in future who wish to display code as part of their lessons.
Classroom details

- Clivir
- Semipublic
Lessons in this classroom

- Classroom feed aggregator
- Sharing rss feeds with other classroom members

- Teach your friends at Clivir
- Invite your friends to clivir to teach them a lesson

- Let Clivir feed you
- Keep up with the latest lessons from classrooms and teachers with the rss feeds

- Creating the Clivir logo using Adobe Fireworks
- Quick demonstration on how the Clivir logo was made

- Clivir notifications
- This lesson explains what notifications at clivir are for.

- Adding resources to your lessons
- Steps on using external resources in your lessons

- Asking clivir questions
- How and why to ask questions

- Answering questions with lessons
- How to answer a question in clivir by linking a lesson.
Similar Lessons

- Adding resources to your lessons
- Steps on using external resources in your lessons

- Creating lessons for Clivir
- How to create and manage lessons on Clivir. It i..

- Creating Panoramas
- Some notes on panorama creation.
Teachers latest lessons(12)

- Classroom feed aggregator
- Sharing rss feeds with other classroom members

- Teach your friends at Clivir
- Invite your friends to clivir to teach them a le..



Comments
Would you like to comment?
Sign up for a free account, or sign in (if you're already a member).