You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
h2{"Want to preview a new syntax highlighting theme?"}
34
+
32
35
markdowndo
33
-
"You are currently previewing **#{@current_highlight.display_name}** as your syntax highlighting theme."
36
+
"This site uses [Pygments-style CSS](https://pygments.org/) for syntax highlighting. You can use the select menu to preview a new syntax highlighting theme. I have curated over 90 options for you from sources around the web."
34
37
end
35
38
36
-
ifpreserving?
39
+
ifpreviewing?
37
40
markdowndo
38
-
"You have saved **#{@session_highlight_light.display_name}** for syntax highlighting across the site."
41
+
"You are currently previewing **#{@current_highlight.display_name}** as your syntax highlighting theme."
39
42
end
40
43
end
41
44
42
-
form_with(
43
-
model: @settings,
44
-
url: settings_syntax_highlight_path,
45
-
method: :get
46
-
)do |form|
47
-
fieldsetdo
48
-
flex_blockdo
49
-
form.label:syntax_highlight_name,"Choose another syntax highlighting theme to preview:"
50
-
form.select:syntax_highlight_name,
51
-
syntax_highlight_options_for_select,
52
-
{
53
-
selected: @current_highlight.name
54
-
},
55
-
onchange: "this.form.requestSubmit()"
56
-
end
45
+
ifpreserving?
46
+
markdowndo
47
+
"You have saved **#{@session_syntax_highlight.display_name}** for syntax highlighting across the site."
57
48
end
58
49
end
50
+
preview_select
59
51
60
52
ifpreviewing?
61
53
markdowndo
62
-
"You can preview what the site looks with this syntax highlighting theme while you remain on this page. Click the **Reset preview** button to go back to #{@session_syntax_highlight ? "your saved color scheme" : "the default color scheme"}."
54
+
"You can preview what the site looks with this syntax highlighting theme while you remain on this page. Click the **Reset preview** button to go back to #{@session_syntax_highlight ? "your saved color scheme, **#{@session_syntax_highlight.display_name}**" : "the default color scheme, **#{@default_syntax_highlight.display_name}**"}."
0 commit comments