Ultraedit docker syntax hightlighting file

Issue At http://www.ultraedit.com/downloads/extras/wordfiles.html I did not find a wordfile for Docker. http://www.ultraedit.com/support/tutorials_power_tips/ultraedit_linux/add_a_wordfile.html explains how you can role your own. Inspired by https://github.com/docker/docker/blob/master/contrib/syntax/vim/syntax/dockerfile.vim I tried: /L20″Docker” Line Comment = # Escape Char = \ String Chars = “‘ File Extensions =

Continue reading

How to highlight an Xtext cross-reference differently for targets of different types?

Issue I have an Xtext grammar which reads (in part): grammar mm.ecxt.MMLanguage hidden(WS, COMMENT) import “http://www.eclipse.org/emf/2002/Ecore” as ecore … Statement: ConstantStatement | VariableStatement | LabeledStatement | … LabeledStatement: EssentialHypothesisStatement | … ConstantStatement: DOLLAR_C (constants+=ConstDecl)+ DOLLAR_DOT; VariableStatement: DOLLAR_V (variables+=VarDecl)+ DOLLAR_DOT; EssentialHypothesisStatement:

Continue reading

Angular JS: Detect if ng-bind-html finished loading then highlight code syntax

Issue I am using ng-bind-html for binding data that I get from database. <p ng-bind-html=”myHTML”></p> app.controller(‘customersCtrl’, function($scope, $http, $stateParams) { console.log($stateParams.id); $http.get(“api link”+$stateParams.id) .then(function(response) { $scope.myHTML = response.data.content; // this will highlight the code syntax $(‘pre code’).each(function(i, block) { hljs.highlightBlock(block);

Continue reading

ng-bind-html and highlight.js

Issue I’m trying to get syntax highlighting for all code elements inside a dynamically added html which will be added to the current page with ng-bind-html. <div ng-repeat=”activity in activities”> <h3>{{activity.title}}</h3> <div ng-bind-html=”activity.text”> </div> </div> The activity.text variable contains something

Continue reading

Matching entire string in gtksourceview

Issue Take this short XML snippet for defining strings in gtksourceview: <context id=”string” style-ref=”string” end-at-line-end=”true”> <start>”</start> <end>”</end> <include> <context id=”special-string” style-ref=”special”> <match>(foo|bar)</match> </context> <context ref=”def:line-continue”/> </include> </context> This highlights any instances of “foo” or “bar” inside a string. Suppose I

Continue reading

syntax highlighting while rendering SQL using knitr

Issue knitr will execute SQL code using engine=’mysql’ but not highlight syntax: \documentclass{article} \begin{document} <<engine=’mysql’, engine.opts=”-h localhost”>>= SHOW DATABASES; @ \end{document} On the other hand using engine=’highlight’ will highlight the code but not execute it. \documentclass{article} \begin{document} <<engine=’highlight’, engine.opts=’-S sql

Continue reading