Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » html

#1 2014-09-30 19:16:22

devobtch
New Member
Registered: 2014-09-30
Posts: 2

html

hi all

how do i display html without rendering it?
i am trying to teach javascript and i need to show
the html file.

thanks

devobtch

Offline

#2 2014-09-30 19:57:57

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: html

Hi devobtch, and welcome to the Textpattern forum.

I assume you want to present HTML in an article post (i.e. inside the body field). Use Textile’s bc. (or bc.. respectively) to show blocks of code, like here:

bc. <html lang="en">
  <head>
  <meta charset="utf-8" />

Use bc.. with two dots to bridge blank lines. Blank lines would otherwise end block level elements in Textile.

p. (or any other block level element in Textile encoding, like h1. , h2. , – h6. ) ends blocks of code you started with two dots. Note the space after the dot/dots, it’s necessary.

Use two @ characters to mark the beginning and end of such -> inline code.

The Textile documentation for encoding code lives here.

Last edited by uli (2014-09-30 20:02:37)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2014-09-30 20:05:39

devobtch
New Member
Registered: 2014-09-30
Posts: 2

Re: html

thanks
worked fine

funny i looked at the documents for encoding
but found nothing

thanks again

Last edited by devobtch (2014-09-30 20:05:59)

Offline

#4 2014-09-30 23:41:48

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: html

Here is the Textile help.

Offline

  1. Index
  2. » How do I…?
  3. » html

Board footer

Powered by FluxBB