Merge pull request #1415 from ajaxorg/highlighting/bugfix
Highlighting bugfix
This commit is contained in:
commit
7ce0ee557b
16 changed files with 246 additions and 33 deletions
|
|
@ -85,6 +85,7 @@ var docs = {
|
|||
"docs/haml.haml": "Haml",
|
||||
"docs/Haxe.hx": "haXe",
|
||||
"docs/html.html": "HTML",
|
||||
"docs/html_ruby.erb": "HTML (Ruby)",
|
||||
"docs/jade.jade": "Jade",
|
||||
"docs/java.java": "Java",
|
||||
"docs/jsp.jsp": "JSP",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
.text-layer {
|
||||
font-family: Monaco, "Courier New", monospace;
|
||||
font-size: 12px;
|
||||
font-size: 12pX;
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
|
|
|
|||
25
demo/kitchen-sink/docs/html_ruby.erb
Normal file
25
demo/kitchen-sink/docs/html_ruby.erb
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<h1>Listing Books</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Summary</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @books.each do |book| %>
|
||||
<tr>
|
||||
<td><%= book.title %></td>
|
||||
<td><%= book.content %></td>
|
||||
<td><%= link_to 'Show', book %></td>
|
||||
<td><%= link_to 'Edit', edit_book_path(book) %></td>
|
||||
<td><%= link_to 'Remove', book, :confirm => 'Are you sure?', :method => :delete %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New book', new_book_path %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue