File: highlight.rb

package info (click to toggle)
tdiary 5.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,088 kB
  • sloc: ruby: 23,031; javascript: 1,029; xml: 325; makefile: 26; sh: 4
file content (29 lines) | stat: -rw-r--r-- 800 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Japanese resource of highlight.rb
#

def highlight_conf_label; 'ハイライト'; end

def highlight_conf_html
	<<-HTML
	<h3 class="subtitle">ハイライトの色設定</h3>
	<p>ジャンプした先のサブタイトルを<span style="color: #{h @conf['highlight.color']}; background: #{h @conf['highlight.background']}">サンプル</span>のようにハイライトします。</p>

	<table>
		<tr>
			<th>ハイライトの文字色</th>
			<td><input name="highlight.color" value="#{h @conf['highlight.color']}"></td>
		</tr>
		<tr>
			<th>ハイライトの背景色</th>
			<td><input name="highlight.background" value="#{h @conf['highlight.background']}"></td>
		</tr>
	</table>
	HTML
end

# Local Variables:
# mode: ruby
# indent-tabs-mode: t
# tab-width: 3
# ruby-indent-level: 3
# End: