Method: Blufin::Terminal.code_highlight_file
- Defined in:
- lib/core/terminal.rb
.code_highlight_file(path_and_file, type, indent = 5) ⇒ Object
Outputs code to terminal that is syntax highlighted.
605 606 607 608 |
# File 'lib/core/terminal.rb', line 605 def self.code_highlight_file(path_and_file, type, indent = 5) raise RuntimeError, "File does not exist: #{path_and_file}" unless Blufin::Files::file_exists(path_and_file) code_highlight(File.read(path_and_file), type, indent) end |