Skip to content

Textadept module for outputting source files into various formats like HTML.

License

Notifications You must be signed in to change notification settings

orbitalquark/textadept-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Export

Textadept module for outputting source files into various formats like HTML.

Install this module by copying it into your ~/.textadept/modules/ directory or Textadept's modules/ directory, and then putting the following in your ~/.textadept/init.lua:

require('export')

There will be a "File > Export" menu.

Fields defined by export

export.browser

Path to or the name of the browser executable to show exported HTML files in. The default value is 'firefox'.

export.line_numbers

Whether or not to show line numbers in exported output. The default value is true.

Functions defined by export

export.to_html(filename, out_filename)

Exports filename filename (or the current file) to filename out_filename (or the user-specified file) in HTML format, and then opens the result in a web browser.

Parameters:

  • filename: The filename to export. The default value is the current buffer's filename.
  • out_filename: The filename to export to. If nil, the user is prompted for one.

About

Textadept module for outputting source files into various formats like HTML.

Topics

Resources

License

Stars

Watchers

Forks