Issue Using ANTLR4 and the Netbeans Platform I have created a grammar for which I have implemented syntax highlighting in my Netbeans Platform application. Everything works fine up to the point when I try to alter my code. grammar MyRule;
Continue readingTag: syntax-highlighting
How to print XML from Visual Studio 2013 with syntax colouring?
Issue I try to print XML file from Visual Studio 2013. It prints in black. I would like to keep the syntax colouring I see oin the IDE. There was some printing extension in Visual Stuio 2010, but it cannot
Continue readingSublime incorrectly highlighting php heredoc blocks as syntax error
Issue So this isn’t supposed to be happening: That’s a properly formatted heredoc, but it looks like Submlime sees<<<HTML as an unterminated <html> tag. Does anyone else have this issue? Is there a fix? Solution According to this forum post,
Continue readingVim syntax (Markdown)
Issue I’m currently exploring the prurigro/vim-markdown-concealed plugin with the conceal option. The highlight I get for the *italic* and **bold** words is not very pretty. The problem can either come from my colorscheme or the plugin syntax. So I looked
Continue readingWriting a Atom editor plugin, animated syntax coloring
Issue I am in for a little experiment, I just need someone to guide me.. I want to make my own custom syntax coloring (for Javascript), and that needs to be animated. Big plus would be (if it is possible)
Continue readingWinEdt highliting switch: how to skip nested STOP symbol?
Issue I have created a highlighting switch in WinEdt8 as following: SWITCH=”\REVR{?}” ENABLED=1 MODE_FILTER=”TeX;BibTeX;MetaPost” START=”{” STOP=”}” HIGHLIGHT_START=0 STEP_OVER_STOP=1 HIGHLIGHT_STOP=0 SCOPE=4 DOMINANT_PRIORITY=0 STRICT_PRIORITY=0 PRIORITY=9 INDENTED=0 BOLN_ONLY=0 CASE_SENSITIVE=1 START1_TRIGGER=”\REVR” START2_TRIGGER=”” STOP1_TRIGGER=”” STOP2_TRIGGER=”” DEFAULT_FONT=1 ITALIC=0 TEXT_COLOR=”#FF0000″ Since the STOP symbol is “}”, the
Continue readingHow to highlite blocks of HTML code in c++ code?
Issue I write web project on c++. In my c++ code has to insert html, for example such void CPage::putBaseFooter() { if(m_canRender) { HTML( <!++ </main> <footer> <f++ composePageFooter(); ++f> </footer> </body> </html> ++!>); } } That is the whole
Continue readingIn Vim, how to display the text of a line with a specific color if it contains a specific word?
Issue I have a simple Todo list : 141015 Call the office about something 141015 Buy a new tie 141016 Book 2 seats at theater If an item is DONE, I simply delete it. But if it is in progress
Continue readingRetain Sass syntax highlighting in Sublime Text 2 when embedding Ruby
Issue I am embedding Ruby in a few Sass files—I have files named, for example, file.css.scss.erb. When I add the .erb extension to these files, I lose the Sass syntax highlighting. Does anyone know how to retain the Sass formatting?
Continue readingValidate value in text_area
Issue I have a text_area in my rails app where users can paste plain text or code. I really don’t want to ask the user to choose text or code for me but want to make it like a WYSWYG
Continue readingError in syntax highlighter js file
Issue I’m using this code to highlight my “Lua” codes: SyntaxHighlighter.brushes.Lua = function() { var keywords = ‘break do end else elseif function if local nil not or repeat return and then until while this’; var funcs = ‘math\\.\\w+ string\\.\\w+
Continue readingCorrectly match begin and end curly braces in syntax highlighting
Issue I am customizing tex.vim syntax file to make LaTeX macro \PVerb to be hightlighted the same way as be \verb. I mimicked the line for \verb in the syntax file, adding the following line: syn region texZone start=”\\PVerb{” end=”}\|%stopzone\>”
Continue readingprevent vi from partially highlighting variable names that contain python keywords
Issue I’m having trouble with vi’s lexical highlighting on variables that contain builtins or keywords. For instance, a python variable like missions_in_window will have partial highlighting on the word "in" while the rest of the variable stays a default color.
Continue readingNotepad++ – How to use "Operators2"?
Issue In the “Define your language…” settings, tab “Operators & Delimiters” there’s a field called “Operators2 (separators required)“. Firstly, I don’t know what “separators required” means in that term. Secondly, whatever I typed in there, it had no effect on
Continue readingsyntax highlighting with coderay, asciidoctor not working
Issue I have asciidoctor markdown like so, as described here http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/#source-code :source-highlighter: coderay :coderay-css: class :stylesheet: coderay_railscasts.css.scss [source,ruby] .app.rb —- require ‘sinatra’ get ‘/hi’ do “Hello World!” end —- But my output in the browser isn’t highlighted at all. The
Continue readingGenerate TextMate language grammar from PEG.js grammar
Issue Is there a tool that translates a PEG.js grammar to a TextMate grammar? I am building my own language and would like to have syntax highlighting for it in my preferred editor, TextMate. The grammar of my language is
Continue readingHow can I add a "::" operator to my VIM syntax highlighting file?
Issue I am using a language embedded inside of Scala that has a :: operator. I would like to modify my scala.vim syntax file to recognize this new operator. This is what I’ve tried (the first line works fine, but
Continue readingIs there plugin for Notepad++ to tweak how blocks of code highlight?
Issue Instead of dotted line I want solid line on side. Or even something like this: Solution This is “indentation guides”. Don’t know NPP plugun. It’s configurable in editors: HippoEdit (even with colors: red/green/etc– option exists), SynWrite (only style of
Continue readingno syntax highlighting for Ruby Gemfile in Notepad++
Issue I created a new app in Ruby on Rails and opened up Notepad++. It seems that most of the files are syntax highlighted for Ruby on Rails to make for easier development. One problem, though is the Gemfile, which
Continue readingGit syntax highlighting in iTerm 2
Issue I’ve just tried to highlight syntax in iTerm 2, but getting no result. I tried config git (Enabling Git syntax highlighting for Mac’s terminal), played with iTerm profiles but can’t reach at result. Actually, I have Colbat2 theme from
Continue readingiPython Notebook – Display source code for bash script with syntax highlighting
Issue How can I display contents of bash script with syntax highlighting in iPython notebook? My workflow usually consists of calling different bash scripts, and I would like to document the source code for these scripts in my notebook. My
Continue readingKeep vim syntax file in same directory as documents
Issue I am keeping notes in console vim on my laptop, and I want to add syntax highlighting to my notes in order to enhance them. However, I don’t want to add a million different filetypes for every area of
Continue readingCombined HTML, PHP and Javascript indenting and syntax highlighting in vim
Issue I use vim for web development. These are almost always .php files, which also contain HTML and sometimes Javascript. While working in a block of PHP, indenting works fine. The syntax highlighting is okay, but only really useful for
Continue readingFile diff souce code highlighting
Issue various JavaScript libraries provide syntax highlighting functionality to display code on a webpage. Some example for those libraries are: Ace (http://ace.c9.io/) – yes, I am aware that this is a whole editor Prism JS (http://prismjs.com/) SyntaxHighlighter (http://alexgorbatchev.com/SyntaxHighlighter/) …and many
Continue readingHow do I get Visual Studio to do vbscript syntax highlighting for .asp files?
Issue asp files are highlighted as html in Visual Studio 2008 unless I put language=vbscript in all my <% > code blocks. lame! when I go to tools -> options -> text editor -> file extention I don’t get vbscript
Continue readingVim + solarized + terminator = keywords highlighted in black
Issue I started to configure vim so I installed pathogen and solarized. Here is my .vimrc and the screenshot of the solarized theme at the same time. I don’t understand why I have keywords like ‘set’ highlighted in black? Is
Continue readingHow to add keywords (and change their colour) to CodeMirror?
Issue I am currently using Brackets (code editor) to create some C source files. It uses CodeMirror to handle the syntax highlighting and I have been attempting now for a while to try and add keywords to it. I managed
Continue readingColoring defined types as types
Issue Is there any way to add syntax coloring to new types defined with typedef statements in C? typedef struct { int a,b; } MyStruct; MyStruct *InitMyStruct(MyStruct *struct, int a, int b); ^ ^ ^ ^ ^ +———+———–+ +——+ Same
Continue readingVim: customize tex equation highlight
Issue How do I force vim to highlight the following environment: \begin{dmath*} 2 + 2 \end{dmath*} the same way as \begin{equation*} 2 + 2 \end{equation*} ? i.e I want the dmath environments (in its plain and starred versions) to be
Continue readingWebStorm syntax highlighting for Swig template engine
Issue Given: The Swig template engine: http://paularmstrong.github.io/swig/ Webstorm has a plugin for it: Textmate bundles support A Textmate bundle for Swig is available: https://github.com/paularmstrong/Swig.tmbundle I expect I should be able to get Swig highlighting fixed, but I’m only getting half
Continue readingWhy is the word `false` written blue and the word `FALSE` written purple in Visual Studio?
Issue Why does Visual Studio change the word color depending on the way it is entered: false with blue, but FALSE with purple. true with blue but TRUE with purple. Is there any difference in the meaning of them and
Continue readingPHPStorm syntax highlighting showing false errors
Issue For some time, PHPStorm 6 is behaving strangely: it keeps syntax errors displayed even when they’re fixed. The only way to clear them is to Cut and Paste. Before C/P: After C/P: How can I fix that ? Solution
Continue readingIntellij language plugin: syntax highlighting when editing using JFlex lexer
Issue I am developing an Intellij Vala plugin. I am stuck on making keyword highlighting work while editing the file. When I open the file all keywords (so far just class and ref) are highlighted correctly. However, when I am
Continue readingMAXScript complete function list?
Issue Writing highlighter for MAXScript. I need list of keywords and functions. There’s a reference for MAXScript: http://docs.autodesk.com/3DSMAX/16/ENU/MAXScript-Help/index.html?url=files/GUID-6FC81BE7-58FF-4C63-8362-0BDCFA9F904C.htm,topicNumber=d30e122065 But it’s hard to rip function list from there. Maybe it could be found somewhere else? I mean, at least listed in
Continue readingWhere is commit message syntax hilighting in IDEA?
Issue The syntax highlighting style I’m using has a light grey font on a white background for the commit message prompt. Where in the syntax highlighting configuration can I tweak the colors used for this? Solution Settings | Editor |
Continue readinghow to get css highlighting and hinting for php files in dreamweaver that are being read as css files?
Issue So for my site I needed a way to highlight a php file as css and also enable code hinting as css inside a php file. I am including the php file as a css file using <link href=”css.php”
Continue readingSyntax highlighting in zsh using 256 colors?
Issue I’m using prezto with zsh, and my difficulty is with the syntax highlighting, of which a sample line is ‘function’ ‘bg=green’ I could also have here, for example ‘function’ ‘bg=blue,fg=yellow’ However, I want to take advantage of my 256
Continue readingVim recipe for a minor syntax highlighting extension
Issue I want to leave my system’s Python syntax highlighting mostly intact, but I have a specific pattern I’d like to highlight for an idiom I use a lot. How can I add additional highlighting instructions on top of the
Continue readingSyntax highlight feature for Grunt-ngdocs
Issue I don’t know whether something is going wrong or it’s not supported yet, but I expect to see code blocks like: “` var example = 3; “` in documentations to be highlighted.How can I fix/add this feature? Solution Workaround:
Continue readingUsing emacs in batch mode to dump a file with syntax highlighting?
Issue I’d like to use emacs in some kind of batch mode to just render a file with syntax highlighting and exit. Specifically, I want to dump the fontified buffer with ANSI escape codes so that it shows up reasonably
Continue readingHow do I enable syntax highlighting for my Gemfile in Sublime Text 2?
Issue I recently started using Sublime Text 2. What an awesome editor. It does a great job of highlighting Ruby code, but it does not highlight my Gemfile. Is there a way to get it to do that? I found
Continue readingHow do I enable syntax highlighting for my Gemfile in Sublime Text 2?
Issue I recently started using Sublime Text 2. What an awesome editor. It does a great job of highlighting Ruby code, but it does not highlight my Gemfile. Is there a way to get it to do that? I found
Continue readingHow do I put my custom syntax highlighting in .vimrc?
Issue I use a shorthand form for the basic C/C++ types and I want Vim to syntax highlight them. I added syn keyword cType u8 s8 u16 s16 u32 s32 u64 s64 f32 f64 byte to my .vimrc, but that
Continue readingDynamic Syntax Highlighting with AngularJS and Highlight.js
Issue I am building a site that illustrates common application vulnerabilities such as SQL Injection. I am using AngularJS and highlight.js to create interactive examples. How can I make both AngularJS and highlight.js update my code snippets? Example This Fiddle
Continue readingWhy is Emacs syntax highlighting in Gnome terminal affected by terminal colour theming?
Issue I’m using Emacs 24.3 under Ubuntu 14.04.1. I’d like to use it both via the GTK interface and the Gnome terminal with emacs -nw. Unfortunately, the colours for any theme that I use appear slightly different in the terminal.
Continue readingAdd syntax highlighting to .less-files in NetBeans
Issue I want to have files with a .less extension use the CSS syntax highlighting in NetBeans, and I don’t have any clue how to do this. I found a rather time consuming way to do this (http://netbeans.dzone.com/tips/quickstart-guide-language-supp), but it
Continue readingvim: custom highlighting for log files
Issue I have log files that take the following form: YYYY-MM-DD HH:MM:SS.sss SEVERITY [thread.name] class.name:line – SEVERITY is one of DEBUG, INFO, WARN, or ERROR. I have a syntax file set up that uniquely highlights the timestamp and each of
Continue readingEclipse does not Highlght my JSP-File
Issue I have a weird occurance and can’t eclipse. Somehow, Eclipse does not show the SyntaxHighlighting for one File, but for all the others: Did some else experience this problem once? How can I fix this? I allready tried closing
Continue readingSublime not highlighting html syntax error
Issue The below html has an error which isn’t picked up by sublime text’s syntax highlighting. <div class="container"> <img class"left" src="/static/img/product.jpg"/> <div class="right"> <h2 class="caps">Product Name</h2> </div> </div> It took me ages to find that error. In an IDE like
Continue readingHighlight definition of occurences of a function/immutable in LightTable
Issue Is it somehow possible to highlight all occurrences of a function and (jump to) its definition in the Clojure-editor LightTable? If I for example have the following code (defn a [x] (* x x)) (str “abc” (a 4)) ;;
Continue readingHow do I enable syntax highlighting for Fortran in GitBook
Issue Original Question: I can’t find how to activate syntax highlighting on GitBook! It works perfectly when I look at the .md files on GitHub where my repository is hosted, by not when I look at my rendered gitbook on
Continue readingnetbeans doesn't mark TODO in error line
Issue I’m switching from eclipse with Aptana plugin to netbeans 7.1. Is it possible to mark TODO in error line on the right with a blue dot as in eclipse? Solution In Netbean you can’t do that anymore, the only
Continue readingFix color highlighting on Solarized in Sublime
Issue Right now, the solarized theme will highlight variables in JavaScript if formatted like this: var foo = function (arg1, arg2) {…} but not like this: var foo = function(arg1, arg2) {…} Some industry standard style guides (e.g. AirBnB) have
Continue readingIs there a colored REPL for Clojure?
Issue I’d like to get a colored REPL for clojure code, similar to what you can do with IRB for Ruby. Are there any libraries or settings for user.clj that provide automatic coloring of the REPL? Example IRB: Solution I
Continue readingjade markup highlighting inside a template in WebStorm
Issue I use webstorm to work with jade. It works just fine, but when I make a template for knockoutjs: script(type=”text/html”, id=”my_template-id”) jade syntax here So jade inside such template is not highlighted properly. How do I make WebStorm understand,
Continue readingEclipse Indigo PDT does not underline syntax errors
Issue I installed Eclipse SDK Indigo and then followed the following instructions to install PDT on it: This is the original solution posted by ben-k link to the topic: Eclipse indigo PDT 3.0 gotcha download “Eclipse Classic” unzip/install to a
Continue readingHow to add Error Markers in Visual Studio 2010 (C++)?
Issue I seem to have lost the default error markers(highlighting), those curly wavy red lines that appear in the TextEditor of VS2010 IDE (for C++) when you type something that isn’t syntactically correct (syntax errors, non existing overloads, …etc). Is
Continue readingHighlight for java?
Issue I’m basically writing a website with play framework and I want to turn code snippets to nicely formatted, highlighted html code. Is there any java library on maven that deals with raw code formatting to html like linux command
Continue readinggoogle-code-prettify removes text in angle bracket
Issue I am using google-code-prettify to syntax-highlight CPP code. I used it as follows. <script src=”https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js?lang=cpp”></script> <pre class=”prettyprint”><code> #include <iostream> using namespace std; int main(){ cout << “Hellow world!” << endl; return 0; } </code> </pre> In the result I
Continue readingHow to detect multiline paste in RichTextBox
Issue At the moment I’m working on a simple syntax highlighter and I have couple of problems. Could you help me out? I have a class library with a component class in it. Everything is in VB.NET. It’s only one
Continue readingEmacs major mode for emerald. Correct highlighting
Issue Long story short: I am a student and in one of my courses we have to use/learn the emerald programming language. After a quick google search I found that somebody already wrote a major-mode for it. Link to the
Continue readingHow to produce a complete HTML document using markdown?
Issue We can process the file code.md containing Here is our first program. “`python s = “Hello, World!” print s “` using markdown2-2.7 -x fenced-code-blocks code.md > code.html to produce the HTML <p>Here is our first program.</p> <div class=”codehilite”><pre><code><span class=”n”>s</span>
Continue readingDisplaying a block of XML – tags/nodes and its content – using XSLT (for Syntax Highlighting)
Issue Is there a way to display an XML block – nodes and all – using XSLT? We’re building a site that allows us to display raw code using Syntax Highlighter. The only problem is, our CMS generates XML, and
Continue readingVim: why is this highlight definition neutralizing the other?
Issue I built the following highlight definitions (thanks to an answer in this question): ” #a6e22e syntax match tagFunctionDefinition “\v\<” syntax match tagFunctionDefinition “\v\>” syntax match tagFunctionDefinition “\v/” hi def link tagFunctionDefinition Function ” #f6266e syntax match tagOperator “\v\<\/?\zs\w+\ze\/?>” hi
Continue readingHow to use CDN hosted highlight.js using Rails?
Issue Where do I place the following links to get highlight.js to work on my Rails application (https://highlightjs.org/download/)? <link rel=”stylesheet” href=”//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/default.min.css”> <script src=”//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js”></script> Solution on app/views/layouts/application.html In the middle of head tags. Sometimes is hard to identify something in the
Continue readingUsing syntax highlight from GitHub
Issue What syntax highlighting is used on GitHub (for HTML, CSS, JavaScript, C#) when viewing source code-file and is it available for the public to use? It works on the page and it works when embedding on a page (from
Continue readingEclipse PHP Incorrect Color Formatting / Highlighting
Issue Sometimes my code color syntax formatting is off on some of my php files. In my case nearly everything is the same color except for keywords. This seems to be random and there are no apparent errors in my
Continue readingEclipse Plugin Development: How to highlight syntax in texteditor?
Issue Given a java method name, i want to highlight it in the TextEditor. I have reference to the texteditor in ITextEditor. Solution You can create an IMarker object on a file which the Java editor will show. IFile file
Continue readingIs there a code editor that will allow copying of syntax highlighting to an Office Document for Windows?
Issue Is there a code editor that will allow copying of syntax highlighting to an Office Document for Windows? I want to be able to copy code into a Word doc or EMail and preserve the Formatting when explaing code
Continue readingMako Sytanx-Highlighting for Geany
Issue Is there a Mako-template syntax-highlighting for Geany? or would I need to make a customized one? Thank you! Solution There is currently no Mako template build in available. As it looks very similar to plain HTML you might want
Continue readingXcode: all .h files lost syntax coloring
Issue I had a project that was working for almost a week then suddenly all my .h files lost code completion/syntax coloring.The only changes i could think of was i changed my target’s name and then when i created a
Continue readingCreating a syntax for the in-program functionality
Issue In Java, I’m trying to make a program that has a input text area which will react to some syntax defined priorly by me. It should highlight whenever I write the keyword among other words and should do whatever
Continue readingHaving Geany support syntax highlighting for my DSL
Issue For the DSL I have developed, I wanted to have Geany support it as it does the embedded languages like java and C#. I created filetypes.myLang.conf and added the configuration fields as in the manual. For the filed [settings]
Continue readingHow do I create a new syntax hilighting set for Ti-Npsire/ Ti-BASIC in Sublime text 2
Issue I’m using the awesome Sublime Text 2 to write in TI-NSPIRE/ Ti-BASIC programs for Nspire Calculator, but it has no syntax highlighting for TI-NSPIRE/ Ti-BASIC. It would be handy to add TI-NSPIRE/ Ti-BASIC’s commands. Does anybody know how I
Continue readingMarkdown syntax highlighting not working as expected
Issue In Sublime Text 3 I am using the package Markdown Extended and Markdown Preview to build the Markdown documents I write. I am trying to get nicely formatted JavaScript code, however, for some reason it isn’t being built and
Continue readingHow to change the syntax highlight color in GNU Enscript?
Issue GNU Enscript is a free replacement for Adobe enscript program, and I downloaded it for syntax highlighting and *.ps output, but can I change the default color model? I found that there is a file named c.st in /usr/share/enscript,
Continue readingMake Webstorm highlight .txt files as HTML
Issue So I have some project files all with .txt extensions which are really HTML templates. I am trying to syntax highlight those .txt files as HTML using Webstorm. Any tips on how to do that? Solution Open File >
Continue readingHow can I apply basic html formatting to a sublime text syntax definition only within
Issue Ok so by the following yaml definition, shouldn’t only what’s in between {blah} and {!blah} get text.html.basic syntax highlighting? And the {blah} tags themselves take the highlighting of a comment? Unfortunately it’s not happening that way. HTML highlighting is
Continue readingCan I turn on Fortran syntax highlight with ".h" file in vim?
Issue I am working on a Fortran project. The author keeps all function interfaces in the “.F90” file between the “module/end module” part, and keeps all the implementation in a separate “.h” file. A “#include” command is used at the
Continue readingCombining multiple syntaxes in MacVim
Issue I’m trying to create a custom syntax highlighter for MacVim that uses a combination of CSS and PHP, where CSS is static selectors, and sometimes there will be embedded PHP code (very similar to HTML+PHP). Here is my syntax
Continue readingNotepad++ syntax highlighting : conflict in rules
Issue I have customized a new language in Notepad++. My problem is that I have two keywords : LAYER and LAYER_ENCODING. In the menu Languages > Define Your language > Select your defined language, LAYER is mentionned in the first
Continue readingEnabling Git syntax highlighting for Mac's terminal
Issue I miss the Git syntax highlighting I had on Windows for every “git .*” command like green staged filenames, some bolding, etc. How do I enable Git syntax highlighting for Mac’s terminal? Solution git config –global color.ui auto Answered
Continue readingAre they any syntax highlighting plugins that will allow you to embed an ignorable html element into a snippet?
Issue I am trying to make dynamic code examples for our api that can be constructed from from input html elements. A paired down example looks like this, I give the user an input to name the device they would
Continue readingAndroid Studio: Copy text with syntax highlighting
Issue I am writing a programm with Android Studio V1.1 and I want to copy my code into a MS Word 2013 document. When I copy the code its just black in Word. Is there a way to copy the
Continue readingHow to make commented out html a different color in Vim?
Issue I am very new to Vim. In other text editors, like Notepad++ and Sublime, when html is commented out, it becomes a different color. Is there a setting or command in Vim that can do this? <div>Normal color</div> <!–<div>This
Continue readingHow to get IClassifier for the standard classification type?
Issue I have an extension to the MS Visual Studio editor which adds some syntax highlighting to the C++. I want to ensure that provided SnapshotSpan has standard classification type (“comment”). There are several ways to do this: 1. I
Continue readingpython highlighting in Rmarkdown in RStudio
Issue I’m using RStudio 0.98.1103. It is said in release notes that they’ve added “Syntax highlighting modes for XML, YAML, SQL, Python, and shell scripts.” But when I write something like this: “`{r engine=’python’, highlight=TRUE} print(“Hello World”) “` – I
Continue readingTMS AdvMemo – SQL syntax highlighting – style not working
Issue I’m making a small application which has a syntax highlight for SQL, by using TMS’s TADvMemo and TAdvSQLMemoStyler components. I’ve changed the default LineComment ‘ property to — to respect SQL comment syntax. The issue I have is that
Continue readingMatch everythin between tag as comment
Issue I would like to highlight every thing between !& some explanation &! As a comment. I know comment are match with – name: comment.line.exclamation-mark.fortran match: (?i)\!.*$ in my fortran.YAML-tmLanguage. But I don’t see how to extend this to the
Continue readingTkinter clearing formatting from syntax highlighting
Issue I have syntax highlighting implemented in Python using Tkinter. For example, I can make it automatically highlight “derp”. The problem is that when I modify the string to, say, “dERP”or something similar, it will still highlight the “d” (aka
Continue readingDrupal 7.10 WYSIWYG with syntax highlighting
Issue Does anyone have a confirmed/tested working way of setting up a rich WYSIWYG (like CKEditor or TinyMCE) with support for syntax highlighting (for pasting and sharing java/php/etc.) in Drupal 7.10? I have now tried a variety of combinations, and
Continue readingXcode: macros breaking completion/highlighting
Issue From the Xcode Docs: Syntax highlighting, code completion, and every other index-driven feature is handled by the LLVM parser. If the compiler knows about a symbol, so does the Xcode IDE. but none of these “index-driven features” are working
Continue readingQSyntaxHighlighter multiline comment in document not appearing correctly
Issue Referring to Syntax Highlighter Example provided by QT official website, I tried to implement (actually you can call copy paste) the same logic for multiline comment in my application. For reference this is the code for multiline comment highlighting:
Continue readingAdd a new language to Visual Studio 2010 with syntax highlighting and intellisense
Issue I am trying to add support for a different language in Visual Studio 2010. I was hoping to add custom syntax highlighting, and have some sort of basic intellisense work with it. The language I am trying to add
Continue readingIs Crockford style Context Coloring implemented in any code editor?
Issue I watched a video from YUIConf 2012 in which Douglas Crockford gives a talk about implementing monads in JavaScript. In this talk he gives a code example that utilizes what he calls “Context Coloring” which throws out the idea
Continue readingHighlight syntax of generic types in Visual Studio
Issue Take a look at the following code: public class MyClass<T> { … } Working with Java or C++ in eclipse, the T would be highlighted, as it is a generic template. How can I achieve this functionality in Visual
Continue readingHighlighting bash code with knitr / rmarkdown
Issue I’m trying to generate an HTML report using RStudio, R Markdown and knitr. In the report I would like to display some bash code. I do not want to run the code but I would like it to be
Continue readingAdd <div> on a MediaWiki geshi syntax highlight extension
Issue I use mediawiki to take note about the procedure that I follow, the source codes I write in mediawiki are highlighted with the expansion Genshi Syntax HighLight. I want to modify this expansion in mediawiki so it could be
Continue readingEditor for groovy and grails?
Issue Is there any editor like notepad++ for groovy or any editor that support .groovy highlighting. Please help with link and name. Solution IntelliJ has great Groovy and Grails support; the free community edition doesn’t support Grails. Sublime Text 2
Continue readingSyntax Highlighting not working properly
Issue So, I’ve been working on a Script Editor in C# in Visual Studio 2013 and of course I want to have syntax highlighting as a feature. I have the following code: programTextBox.Enabled = false; Regex cKeyWords = new Regex(“(auto|break|case|char|const|continue|defaut|double|else|enum|extern|float|for|goto|if|int”
Continue reading