Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Александр Буш
/
minesite
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f4319f22
authored
Mar 26, 2013
by
Alex Bush
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hilighter like on mojolicio.us
1 parent
4f0437b5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
2 deletions
public/css/mojo.css
public/img/pinstripe.gif
public/js/prettify.js
templates/layouts/default.html.ep
public/css/mojo.css
0 → 100644
View file @
f4319f2
pre
{
background
:
url(/img/pinstripe.gif)
;
-moz-border-radius
:
5px
;
border-radius
:
5px
;
color
:
#eee
;
font
:
0.8em
Consolas
,
Menlo
,
Monaco
,
Courier
,
monospace
;
line-height
:
1.7em
;
text-align
:
left
;
text-shadow
:
#333
0
1px
0
;
padding-bottom
:
1.5em
;
padding-top
:
1.5em
;
white-space
:
pre-wrap
;
}
.str
{
color
:
#9daa7e
}
.kwd
{
color
:
#d5b57c
}
.com
{
color
:
#726d73
}
.typ
{
color
:
#dd7e5e
}
.lit
{
color
:
#fcf0a4
}
.pun
,
.opn
,
.clo
{
color
:
#a78353
}
.pln
{
color
:
#889dbc
}
.tag
{
color
:
#d5b57c
}
.atn
{
color
:
#dd7e5e
}
.atv
{
color
:
#9daa7e
}
.dec
{
color
:
#dd7e5e
}
\ No newline at end of file
public/img/pinstripe.gif
0 → 100644
View file @
f4319f2
82 Bytes
public/js/prettify.js
View file @
f4319f2
...
@@ -25,4 +25,4 @@ I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),
...
@@ -25,4 +25,4 @@ I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),
hashComments
:
3
,
cStyleComments
:
!
0
,
multilineStrings
:
!
0
,
tripleQuotedStrings
:
!
0
,
regexLiterals
:
!
0
}),[
"coffee"
]);
k
(
x
([],[[
"str"
,
/^
[\S\s]
+/
]]),[
"regex"
]);
window
.
prettyPrintOne
=
function
(
a
,
m
,
e
){
var
h
=
document
.
createElement
(
"PRE"
);
h
.
innerHTML
=
a
;
e
&&
D
(
h
,
e
);
E
({
g
:
m
,
i
:
e
,
h
:
h
});
return
h
.
innerHTML
};
window
.
prettyPrint
=
function
(
a
){
function
m
(){
for
(
var
e
=
window
.
PR_SHOULD_USE_CONTINUATION
?
l
.
now
()
+
250
:
Infinity
;
p
<
h
.
length
&&
l
.
now
()
<
e
;
p
++
){
var
n
=
h
[
p
],
k
=
n
.
className
;
if
(
k
.
indexOf
(
"prettyprint"
)
>=
0
){
var
k
=
k
.
match
(
g
),
f
,
b
;
if
(
b
=
hashComments
:
3
,
cStyleComments
:
!
0
,
multilineStrings
:
!
0
,
tripleQuotedStrings
:
!
0
,
regexLiterals
:
!
0
}),[
"coffee"
]);
k
(
x
([],[[
"str"
,
/^
[\S\s]
+/
]]),[
"regex"
]);
window
.
prettyPrintOne
=
function
(
a
,
m
,
e
){
var
h
=
document
.
createElement
(
"PRE"
);
h
.
innerHTML
=
a
;
e
&&
D
(
h
,
e
);
E
({
g
:
m
,
i
:
e
,
h
:
h
});
return
h
.
innerHTML
};
window
.
prettyPrint
=
function
(
a
){
function
m
(){
for
(
var
e
=
window
.
PR_SHOULD_USE_CONTINUATION
?
l
.
now
()
+
250
:
Infinity
;
p
<
h
.
length
&&
l
.
now
()
<
e
;
p
++
){
var
n
=
h
[
p
],
k
=
n
.
className
;
if
(
k
.
indexOf
(
"prettyprint"
)
>=
0
){
var
k
=
k
.
match
(
g
),
f
,
b
;
if
(
b
=
!
k
){
b
=
n
;
for
(
var
o
=
void
0
,
c
=
b
.
firstChild
;
c
;
c
=
c
.
nextSibling
)
var
i
=
c
.
nodeType
,
o
=
i
===
1
?
o
?
b
:
c
:
i
===
3
?
N
.
test
(
c
.
nodeValue
)?
b
:
o
:
o
;
b
=
(
f
=
o
===
b
?
void
0
:
o
)
&&
"CODE"
===
f
.
tagName
}
b
&&
(
k
=
f
.
className
.
match
(
g
));
k
&&
(
k
=
k
[
1
]);
b
=!
1
;
for
(
o
=
n
.
parentNode
;
o
;
o
=
o
.
parentNode
)
if
((
o
.
tagName
===
"pre"
||
o
.
tagName
===
"code"
||
o
.
tagName
===
"xmp"
)
&&
o
.
className
&&
o
.
className
.
indexOf
(
"prettyprint"
)
>=
0
){
b
=!
0
;
break
}
b
||
((
b
=
(
b
=
n
.
className
.
match
(
/
\b
linenums
\b(?:
:
(\d
+
))?
/
))?
b
[
1
]
&&
b
[
1
].
length
?
+
b
[
1
]:
!
0
:
!
1
)
&&
D
(
n
,
b
),
d
=
{
g
:
k
,
h
:
n
,
i
:
b
},
E
(
d
))}}
p
<
h
.
length
?
setTimeout
(
m
,
!
k
){
b
=
n
;
for
(
var
o
=
void
0
,
c
=
b
.
firstChild
;
c
;
c
=
c
.
nextSibling
)
var
i
=
c
.
nodeType
,
o
=
i
===
1
?
o
?
b
:
c
:
i
===
3
?
N
.
test
(
c
.
nodeValue
)?
b
:
o
:
o
;
b
=
(
f
=
o
===
b
?
void
0
:
o
)
&&
"CODE"
===
f
.
tagName
}
b
&&
(
k
=
f
.
className
.
match
(
g
));
k
&&
(
k
=
k
[
1
]);
b
=!
1
;
for
(
o
=
n
.
parentNode
;
o
;
o
=
o
.
parentNode
)
if
((
o
.
tagName
===
"pre"
||
o
.
tagName
===
"code"
||
o
.
tagName
===
"xmp"
)
&&
o
.
className
&&
o
.
className
.
indexOf
(
"prettyprint"
)
>=
0
){
b
=!
0
;
break
}
b
||
((
b
=
(
b
=
n
.
className
.
match
(
/
\b
linenums
\b(?:
:
(\d
+
))?
/
))?
b
[
1
]
&&
b
[
1
].
length
?
+
b
[
1
]:
!
0
:
!
1
)
&&
D
(
n
,
b
),
d
=
{
g
:
k
,
h
:
n
,
i
:
b
},
E
(
d
))}}
p
<
h
.
length
?
setTimeout
(
m
,
250
):
a
&&
a
()}
for
(
var
e
=
[
document
.
getElementsByTagName
(
"pre"
),
document
.
getElementsByTagName
(
"code"
),
document
.
getElementsByTagName
(
"xmp"
)],
h
=
[],
k
=
0
;
k
<
e
.
length
;
++
k
)
for
(
var
t
=
0
,
s
=
e
[
k
].
length
;
t
<
s
;
++
t
)
h
.
push
(
e
[
k
][
t
]);
var
e
=
q
,
l
=
Date
;
l
.
now
||
(
l
=
{
now
:
function
(){
return
+
new
Date
}});
var
p
=
0
,
d
,
g
=
/
\b
lang
(?:
uage
)?
-
([\w
.
]
+
)(?!\S)
/
;
m
()};
window
.
PR
=
{
createSimpleLexer
:
x
,
registerLangHandler
:
k
,
sourceDecorator
:
u
,
PR_ATTRIB_NAME
:
"atn"
,
PR_ATTRIB_VALUE
:
"atv"
,
PR_COMMENT
:
"com"
,
PR_DECLARATION
:
"dec"
,
PR_KEYWORD
:
"kwd"
,
PR_LITERAL
:
"lit"
,
250
):
a
&&
a
()}
for
(
var
e
=
[
document
.
getElementsByTagName
(
"pre"
),
document
.
getElementsByTagName
(
"code"
),
document
.
getElementsByTagName
(
"xmp"
)],
h
=
[],
k
=
0
;
k
<
e
.
length
;
++
k
)
for
(
var
t
=
0
,
s
=
e
[
k
].
length
;
t
<
s
;
++
t
)
h
.
push
(
e
[
k
][
t
]);
var
e
=
q
,
l
=
Date
;
l
.
now
||
(
l
=
{
now
:
function
(){
return
+
new
Date
}});
var
p
=
0
,
d
,
g
=
/
\b
lang
(?:
uage
)?
-
([\w
.
]
+
)(?!\S)
/
;
m
()};
window
.
PR
=
{
createSimpleLexer
:
x
,
registerLangHandler
:
k
,
sourceDecorator
:
u
,
PR_ATTRIB_NAME
:
"atn"
,
PR_ATTRIB_VALUE
:
"atv"
,
PR_COMMENT
:
"com"
,
PR_DECLARATION
:
"dec"
,
PR_KEYWORD
:
"kwd"
,
PR_LITERAL
:
"lit"
,
PR_NOCODE
:
"nocode"
,
PR_PLAIN
:
"pln"
,
PR_PUNCTUATION
:
"pun"
,
PR_SOURCE
:
"src"
,
PR_STRING
:
"str"
,
PR_TAG
:
"tag"
,
PR_TYPE
:
"typ"
}})();
PR_NOCODE
:
"nocode"
,
PR_PLAIN
:
"pln"
,
PR_PUNCTUATION
:
"pun"
,
PR_SOURCE
:
"src"
,
PR_STRING
:
"str"
,
PR_TAG
:
"tag"
,
PR_TYPE
:
"typ"
}})();
\ No newline at end of file
templates/layouts/default.html.ep
View file @
f4319f2
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/bootstrap-wysihtml5.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/bootstrap-wysihtml5.css"
>
<script
src=
"/js/bootstrap-wysihtml5.js"
></script>
<script
src=
"/js/bootstrap-wysihtml5.js"
></script>
<link
href=
"/css/
obsidian
.css"
type=
"text/css"
rel=
"stylesheet"
/>
<link
href=
"/css/
mojo
.css"
type=
"text/css"
rel=
"stylesheet"
/>
<script
type=
"text/javascript"
src=
"/js/prettify.js"
></script>
<script
type=
"text/javascript"
src=
"/js/prettify.js"
></script>
</head>
</head>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment