my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes Weird class: class= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Weird class: class="brush:js; html-script:true;"" Watch "Weird class: class="brush:js; html-script:true;"" New topic
Author

Weird class: class="brush:js; html-script:true;"

Martin Garrido
Ranch Hand

Joined: Dec 04, 2010
Posts: 31
I learn CSS and JS. While I was looking for syntax highlighting and I met with this classname, strange for me.

What do colon and semicolon mean in this position? and how can I put a own classname within this?

class="myclass brush:js; html-script:true;" doesn't work.

Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Where did you see this? Some context would be nice. Otherwise we can only guess.

Martin Garrido wrote:class="myclass brush:js; html-script:true;" doesn't work.

Define "doesn't work". Please read ItDoesntWorkIsUseless.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Martin Garrido
Ranch Hand

Joined: Dec 04, 2010
Posts: 31
Bear Bibeault wrote:Where did you see this? Some context would be nice. Otherwise we can only guess.

Martin Garrido wrote:class="myclass brush:js; html-script:true;" doesn't work.

Define "doesn't work". Please read ItDoesntWorkIsUseless.


style of "myclass" has no effect with: class="myclass brush:js; html-script:true;"

<pre class="brush:js;"> and other tags in head must be placed to syntax highlight with software syntaxhighlighter.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Looks like some program using class to hold information instead of using attributes or html5 data. Nothing special there.

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Weird class: class="brush:js; html-script:true;"