Skip to content

Commit

Permalink
chore: create tools/dictdiffhtml.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
DGCK81LNN committed Apr 6, 2024
1 parent 9bb7a95 commit cfa7c62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/dictdiffhtml.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print "<meta charset=utf-8><table style='font-family:consolas,monospace,sans-serif'><tr><th><th>汉字<th>希顶<th>备注<th>汉希提示<th>希汉提示#{STDIN.read.gsub(/^ /, '<tr><td><td>').gsub(/^\+/, '<tr style="color:green"><td>+<td>').gsub(/^-/, '<tr style="color:red"><td>-<td>').gsub("\t", '<td>')}"

0 comments on commit cfa7c62

Please sign in to comment.