• Syntax highlighting for JIRA patches

    by  • December 8, 2012 • Tech, Tips and Trick • 0 Comments

    When working with JIRA I find useful to browse attached issue patches and have the syntax highlighted in my browser.
    As I am too lazy to download the patch and open it locally and what I want to use is just my browser I found a neat chrome extension to does exactly this kind of highlighting: Syntaxtic

    You can install it from chrome web store :
    Chrome Syntaxtic

    Having this installed in your browser, source files are now nicely highlighted directly in your browser.
    Wait! But my JIRA patches are not always having the right extensions (e.g .diff or .patch).
    To overcome this, just append it to patch url, eg:

    https://issues.apache.org/jira/secure/attachment/12560014/7205-v6.txt?.diff

    Right now the supported languages are:

    Actionscript (.as .actionscript)
    Bash (.sh)
    C++ (.cpp .h .cc)
    C# (.cs)
    C (.c .h)
    Clojure (.clj)
    CSS (.css)
    Diff (.diff .patch)
    Erlang (.erl)
    Groovy (.groovy)
    JavaScript (.js)
    Java (.java)
    JavaFX (.fx)
    Latex (.tex)
    Objective-C (.m, .h)
    Perl (.pl .perl .pm)
    PlainText (.txt)
    PowerShell (.ps1 .ps2)
    Python (.py)
    Ruby (.rb)
    Scala (.scala)
    Sql (.sql)
    VisualBasic (.vb)
    Xcode Project (.pbxproj)

    Happy JIRA browsing!

    About

    Software surveyor

    Leave a Reply

    Your email address will not be published. Required fields are marked *