Git – Do colours mean something in vi when I commit?

Vi is giving you a hint about “properly” formatting your commit message. While there is no specific enforcement of one message style w.r.t. another, “traditionally” Git commit messages are structured this way: A short title describing the changeset (usually less than 50-60 characters); One blank line; A more complete description of the commit, optionally divided … Read more

Improve GeSHi syntax highlighting for T-SQL

You can do this by adding a PARSER_CONTROL control to the end of the array: ‘PARSER_CONTROL’ => array( ‘KEYWORDS’ => array( 1 => array( // “1” maps to the main keywords near the start of the array ‘DISALLOWED_BEFORE’ => ‘(?![\(\w])’, ‘DISALLOWED_AFTER’ => ‘(?![\(\w])’ ), 5 => array( // “5” maps to the shorter keywords like … Read more

CodeMirror HTML mode not working

CodeMirror parses HTML using the XML mode. To use it, the appropriate script must be included, same as with any other mode. Add its dependency in your markup: <script type=”text/javascript” src=”https://stackoverflow.com/site.com/js/libs/codemirror/mode/xml/xml.js”></script> and set the mode to xml: config = { mode : “xml”, // … }; In addition, you may want to configure the parser … Read more

VIM: simple steps to create syntax highlight file – for logfiles

There are three ways of defining syntax items (see :help :syn-define): Keywords: these are for items that are simple strings of keyword characters. This is the fastest matcher. Matches: these are regular expressions for matching. Regions: these are for long regions that are likely to contain other items. There are various arguments that make things … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)