-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
111 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
db/migrate/20100522191825_add_highlighted_code_to_bookmarklets.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class AddHighlightedCodeToBookmarklets < ActiveRecord::Migration | ||
def self.up | ||
add_column :bookmarklets, :highlighted_code, :text | ||
end | ||
|
||
def self.down | ||
remove_column :bookmarklets, :highlighted_code | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
// Place your application-specific JavaScript functions and classes here | ||
// This file is automatically included by javascript_include_tag :defaults | ||
function showTheCodes() { | ||
$('source').appear({ duration: 0.3 }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* - Ripped shamefully from GitHub - */ | ||
pre .c { color: #999988; font-style: italic } /* Comment */ | ||
pre .err { color: #a61717; background-color: #e3d2d2 } /* Error */ | ||
pre .k { font-weight: bold } /* Keyword */ | ||
pre .o { font-weight: bold } /* Operator */ | ||
pre .cm { color: #999988; font-style: italic } /* Comment.Multiline */ | ||
pre .cp { color: #999999; font-weight: bold } /* Comment.Preproc */ | ||
pre .c1 { color: #999988; font-style: italic } /* Comment.Single */ | ||
pre .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ | ||
pre .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ | ||
pre .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */ | ||
pre .ge { font-style: italic } /* Generic.Emph */ | ||
pre .gr { color: #aa0000 } /* Generic.Error */ | ||
pre .gh { color: #999999 } /* Generic.Heading */ | ||
pre .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ | ||
pre .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */ | ||
pre .go { color: #888888 } /* Generic.Output */ | ||
pre .gp { color: #555555 } /* Generic.Prompt */ | ||
pre .gs { font-weight: bold } /* Generic.Strong */ | ||
pre .gu { color: #aaaaaa } /* Generic.Subheading */ | ||
pre .gt { color: #aa0000 } /* Generic.Traceback */ | ||
pre .kc { font-weight: bold } /* Keyword.Constant */ | ||
pre .kd { font-weight: bold } /* Keyword.Declaration */ | ||
pre .kp { font-weight: bold } /* Keyword.Pseudo */ | ||
pre .kr { font-weight: bold } /* Keyword.Reserved */ | ||
pre .kt { color: #445588; font-weight: bold } /* Keyword.Type */ | ||
pre .m { color: #009999 } /* Literal.Number */ | ||
pre .s { color: #d14 } /* Literal.String */ | ||
pre .na { color: #008080 } /* Name.Attribute */ | ||
pre .nb { color: #0086B3 } /* Name.Builtin */ | ||
pre .nc { color: #445588; font-weight: bold } /* Name.Class */ | ||
pre .no { color: #008080 } /* Name.Constant */ | ||
pre .ni { color: #800080 } /* Name.Entity */ | ||
pre .ne { color: #990000; font-weight: bold } /* Name.Exception */ | ||
pre .nf { color: #990000; font-weight: bold } /* Name.Function */ | ||
pre .nn { color: #555555 } /* Name.Namespace */ | ||
pre .nt { color: #000080 } /* Name.Tag */ | ||
pre .nv { color: #008080 } /* Name.Variable */ | ||
pre .ow { font-weight: bold } /* Operator.Word */ | ||
pre .w { color: #bbbbbb } /* Text.Whitespace */ | ||
pre .mf { color: #009999 } /* Literal.Number.Float */ | ||
pre .mh { color: #009999 } /* Literal.Number.Hex */ | ||
pre .mi { color: #009999 } /* Literal.Number.Integer */ | ||
pre .mo { color: #009999 } /* Literal.Number.Oct */ | ||
pre .sb { color: #d14 } /* Literal.String.Backtick */ | ||
pre .sc { color: #d14 } /* Literal.String.Char */ | ||
pre .sd { color: #d14 } /* Literal.String.Doc */ | ||
pre .s2 { color: #d14 } /* Literal.String.Double */ | ||
pre .se { color: #d14 } /* Literal.String.Escape */ | ||
pre .sh { color: #d14 } /* Literal.String.Heredoc */ | ||
pre .si { color: #d14 } /* Literal.String.Interpol */ | ||
pre .sx { color: #d14 } /* Literal.String.Other */ | ||
pre .sr { color: #009926 } /* Literal.String.Regex */ | ||
pre .s1 { color: #d14 } /* Literal.String.Single */ | ||
pre .ss { color: #990073 } /* Literal.String.Symbol */ | ||
pre .bp { color: #999999 } /* Name.Builtin.Pseudo */ | ||
pre .vc { color: #008080 } /* Name.Variable.Class */ | ||
pre .vg { color: #008080 } /* Name.Variable.Global */ | ||
pre .vi { color: #008080 } /* Name.Variable.Instance */ | ||
pre .il { color: #009999 } /* Literal.Number.Integer.Long */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,7 @@ textarea { | |
padding: 4px; | ||
margin-top: 20px; | ||
font-size: 14px; | ||
line-height: 1.6em; | ||
} | ||
|
||
blockquote { | ||
|