mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Add colorize_without_wrapper
This commit is contained in:
		| @@ -111,4 +111,16 @@ class TestLanguage < Test::Unit::TestCase | ||||
| </div> | ||||
|     HTML | ||||
|   end | ||||
|  | ||||
|   def test_colorize_without_wrapper | ||||
|     assert_equal <<-HTML, Language['Text'].colorize_without_wrapper("Hello") | ||||
| Hello | ||||
|     HTML | ||||
|  | ||||
|     assert_equal <<-HTML, Language['Ruby'].colorize_without_wrapper("def foo\n  'foo'\nend\n") | ||||
| <span class="k">def</span> <span class="nf">foo</span> | ||||
|   <span class="s1">'foo'</span> | ||||
| <span class="k">end</span> | ||||
|     HTML | ||||
|   end | ||||
| end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user