Skip to content

Commit

Permalink
Added code syntax highlighting to the social/sharing page
Browse files Browse the repository at this point in the history
  • Loading branch information
David Davis committed Apr 29, 2011
1 parent ec8af21 commit f6ed0f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions resources/public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ div.testcases {
float: left;
}

div#shared-code-box {
width: 90%;
font-size: 1.3em;
float: left;
}

div#testcases {
float: left;
margin: 10px;
Expand Down
4 changes: 2 additions & 2 deletions src/foreclojure/social.clj
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
(let [user (session/session-get :user)
gist-url (gist! user id code)
gist-link (if gist-url
[:div
[:div {:id "shared-code-box"}
[:div.code
[:h3 "Your Solution"]
[:pre code]]
[:pre {:class "brush: clojure;gutter: false;toolbar: false;light: true"} code]]
[:br]
[:div.share
"Share this " (link-to gist-url "solution")
Expand Down

0 comments on commit f6ed0f9

Please sign in to comment.