mirror of https://github.com/freeCodeCamp/devdocs
parent
a37e9d87cf
commit
dbc628cebd
@ -1,6 +1,6 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.BowerPage extends app.views.BasePage
|
||||
afterRender: ->
|
||||
prepare: ->
|
||||
@highlightCode @findAll('pre[data-lang="js"], pre[data-lang="javascript"], pre[data-lang="json"]'), 'javascript'
|
||||
return
|
||||
|
@ -1,7 +1,7 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.CPage extends app.views.BasePage
|
||||
afterRender: ->
|
||||
prepare: ->
|
||||
@highlightCode @findAll('pre.source-c, .source-c > pre'), 'c'
|
||||
@highlightCode @findAll('pre.source-cpp, .source-cpp > pre'), 'cpp'
|
||||
return
|
||||
|
@ -1,7 +1,7 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.CoffeescriptPage extends app.views.BasePage
|
||||
afterRender: ->
|
||||
prepare: ->
|
||||
@highlightCode @findAll('.code > pre:first-child'), 'coffeescript'
|
||||
@highlightCode @findAll('.code > pre:last-child'), 'javascript'
|
||||
return
|
||||
|
@ -1,6 +1,6 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.D3Page extends app.views.BasePage
|
||||
afterRender: ->
|
||||
prepare: ->
|
||||
@highlightCode @findAll('.highlight > pre'), 'javascript'
|
||||
return
|
||||
|
@ -1,6 +1,6 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.DrupalPage extends app.views.BasePage
|
||||
afterRender: ->
|
||||
prepare: ->
|
||||
@highlightCode @findAll('pre.php'), 'php'
|
||||
return
|
||||
|
@ -1,6 +1,6 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.GoPage extends app.views.BasePage
|
||||
afterRender: ->
|
||||
prepare: ->
|
||||
@highlightCode @findAll('pre'), 'go'
|
||||
return
|
||||
|
@ -1,6 +1,6 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.LaravelPage extends app.views.BasePage
|
||||
afterRender: ->
|
||||
prepare: ->
|
||||
@highlightCode @findAllByTag('pre'), 'php'
|
||||
return
|
||||
|
@ -1,7 +1,7 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.MeteorPage extends app.views.BasePage
|
||||
afterRender: ->
|
||||
prepare: ->
|
||||
@highlightCode @findAll('pre.js, pre.javascript'), 'javascript'
|
||||
@highlightCode @findAll('pre.html'), 'markup'
|
||||
return
|
||||
|
@ -1,7 +1,7 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.PhalconPage extends app.views.BasePage
|
||||
afterRender: ->
|
||||
prepare: ->
|
||||
@highlightCode @findAll('pre[class*="php"]'), 'php'
|
||||
@highlightCode @findAll('pre.highlight-html'), 'markup'
|
||||
return
|
||||
|
@ -1,6 +1,6 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.PhpPage extends app.views.BasePage
|
||||
afterRender: ->
|
||||
prepare: ->
|
||||
@highlightCode @findAllByClass('phpcode'), 'php'
|
||||
return
|
||||
|
@ -1,6 +1,6 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.PhpunitPage extends app.views.BasePage
|
||||
afterRender: ->
|
||||
prepare: ->
|
||||
@highlightCode @findAll('pre.programlisting'), 'php'
|
||||
return
|
||||
|
@ -1,6 +1,6 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.RustPage extends app.views.BasePage
|
||||
afterRender: ->
|
||||
prepare: ->
|
||||
@highlightCode @findAll('pre.rust'), 'rust'
|
||||
return
|
||||
|
@ -1,7 +1,7 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.SphinxPage extends app.views.BasePage
|
||||
afterRender: ->
|
||||
prepare: ->
|
||||
@highlightCode @findAll('pre.python'), 'python'
|
||||
@highlightCode @findAll('pre.markup'), 'markup'
|
||||
return
|
||||
|
Loading…
Reference in new issue