Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
637 B

  1. /*
  2. * This file will highlight itself using a custom theme when run via: "node highlight-self-hide-semicolons"
  3. * The custom theme highlights semicolons as 'black', thus hiding them.
  4. */
  5. 'use strict'
  6. var cardinal = require('..')
  7. var hideSemicolonsTheme = require('../themes/hide-semicolons')
  8. function highlight() {
  9. // Using the synchronous highlightFileSync()
  10. // For asynchronous highlighting use: highlightFile() - see highlight-self.js
  11. try {
  12. var highlighted = cardinal.highlightFileSync(__filename, {theme: hideSemicolonsTheme})
  13. console.log(highlighted)
  14. } catch (err) {
  15. console.error(err)
  16. }
  17. }
  18. highlight()