• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Abhishek Tanwar

I build web & mobile experiences

  • HOME
  • BLOG
  • CONTACT ME
  • DISCLAIMER & COPYRIGHTS
You are here: Home / Tips & Tricks / XQuery highlighting in Notepad++

XQuery highlighting in Notepad++

January 3, 2014 by Abhishek Tanwar

Hello there!

This is another post around XQuery and IDEs. As in my earlier post I have suggested to use XQDT for XQuery IDE for building and running XQueries, In this post I am going to explain how to use XQuery in Notepad++.

I use notepad++ in my official environment a lot for editing all kinds of files including text, xml, and even XQueries. There are lot of predefined language types in Notepad++ and comes with styling of them. And of course, it looks great when styled.

For now, Notepad++ officially doesn’t include XQuery styling and hence this post!

I found the following plugin configuration for notepad++ that will just do XQuery editing easy with syntax highlighting. Trust me it will add to your code!

I am attaching below files:

1. userDefineLang.xml
2. XQuery.xml
3. XQuery.api

Follow the below steps to configure the same. [Assumption: You have installed notepad++ already Smile )

Step 1: Copy XQuery language definition for syntax highlighting
Copy “userDefineLang.xml” to %APPDATA%\Notepad++

Step 2: Copy Query.xml and Query.api to Notepad++ Installation folder

XQuery.api and XQuery.xml to C:\Program Files(x86)\Notepad++\plugins\APIs

Once these are copied, restart Notepad++.

XQuery without formatting.

image

XQuery with plugin enabled from Language –> XQuery

image

Hope the above was useful for you.

Download the required files from HERE.

Share this:

  • Facebook
  • X

Like this:

Like Loading...

Filed Under: Tips & Tricks Tagged With: Notepad++ XQuery, XQDT alternative, xquery

Reader Interactions

Comments

  1. Vinay Khare says

    January 4, 2014 at 12:01 am

    Quiet helpful for all XQuery programmers working on super heavy applications.

    One more point that I would like to add to make it support varying extensions of XQuery Language like .xqy, .xq or .xquery. To do so, we can edit the value of ext attribute of UserLang element in userDefineLang.xml file.

    Say: –> will support xqy extension only
    –> will support xqy xquery and xq extension

    Similarly, we add any extension, just by separating it with a space.

  2. Vinay Khare says

    January 4, 2014 at 12:05 am

    Quiet helpful for all the XQuery programmers working over a super heavy application.

    One more point that I would like to add to make it support varying extensions of XQuery Language like .xqy, .xq or .xquery. To do so, we can edit the value of ext attribute of UserLang element in userDefineLang.xml file.

    Say: UserLang name=”XQuery” ext=”xqy” –> will support xqy extension only
    UserLang name=”XQuery” ext=”xqy xquery xq” –> will support xqy xquery and xq extension

    Similarly, we can add any extension, just by separating it with a space.

  3. Abhishek says

    January 4, 2014 at 11:26 am

    Absolutely!

  4. Rakesh says

    December 9, 2016 at 7:27 pm

    Thanks a lot for this helpful article.

  5. Alexander Schäl says

    October 3, 2017 at 3:58 am

    Thanks! But the highlighter does not handle conditions with “less than” right. Try “if ($length < 5) then"

  6. Alexander Schäl says

    August 14, 2019 at 9:27 pm

    Do you have an update in the new NotePad++ v7.6.6 “UserDefinedLanguage”-Format ?

Primary Sidebar

  • Behance
  • Email
  • Facebook
  • GitHub
  • LinkedIn

Popular Posts

How To Integrate React in JSP Application
SaaS, PaaS, IaaS
XQuery highlighting in Notepad++
Standard Design Patterns – Applied to JAVA
XQDT Installation on Eclipse JUNO

Categories

  • Building APIs
  • Building Mobile Apps
  • Building Web Apps
  • Coding Challenges
  • Extensions
  • Fullstack
  • Patterns
  • Tips & Tricks
  • Uncategorized
  • VSCode

Tags

2022 vscode extensions Abstract Factory alienware amazing vscode extensions apple challenges coding coding-challenges Design Patterns dota2 dota2 items dynamic web service call dynamic webservice invocation enterprise integration express flex helpful vscode extensions how to implement mfa in nodejs increasing productivity using vscode integration pattern macro message channel message endpoint message pattern message router message translator messaging mfa offline action processing offline actions in struts pipes and filters PRG in struts react Steam struts System Emulator threads in struts utilities vscode vscode customization vscode extensions vscode productivity extensions xquery xquery 1.0 xquery design principles

Recent Posts

  • 15+ VSCode Extensions To Improve Your Productivity
  • Productivity and Quality Extensions for ReactJS in VSCode..
  • My goto VSCode plugins for 2022…
  • How to enable MFA for your application in Node.JS?
  • Structuring Express Application – How I do it?

Categories

  • Building APIs (8)
  • Building Mobile Apps (1)
  • Building Web Apps (7)
  • Coding Challenges (3)
  • Extensions (1)
  • Fullstack (6)
  • Patterns (8)
  • Tips & Tricks (41)
  • Uncategorized (43)
  • VSCode (2)

Tags

2022 vscode extensions Abstract Factory alienware amazing vscode extensions apple challenges coding coding-challenges Design Patterns dota2 dota2 items dynamic web service call dynamic webservice invocation enterprise integration express flex helpful vscode extensions how to implement mfa in nodejs increasing productivity using vscode integration pattern macro message channel message endpoint message pattern message router message translator messaging mfa offline action processing offline actions in struts pipes and filters PRG in struts react Steam struts System Emulator threads in struts utilities vscode vscode customization vscode extensions vscode productivity extensions xquery xquery 1.0 xquery design principles

Archives

  • August 2023 (1)
  • March 2022 (1)
  • February 2022 (1)
  • November 2020 (1)
  • April 2020 (2)
  • May 2019 (1)
  • April 2019 (1)
  • March 2019 (1)
  • December 2018 (1)
  • July 2018 (4)
  • June 2018 (3)
  • March 2018 (1)
  • May 2016 (1)
  • December 2015 (1)
  • May 2015 (1)
  • April 2015 (2)
  • March 2015 (1)
  • December 2014 (2)
  • November 2014 (2)
  • October 2014 (1)
  • August 2014 (2)
  • July 2014 (1)
  • April 2014 (1)
  • March 2014 (1)
  • February 2014 (2)
  • January 2014 (1)
  • December 2013 (4)
  • November 2013 (4)
  • October 2013 (3)
  • September 2013 (4)
  • August 2013 (2)
  • July 2013 (5)
  • June 2013 (9)
  • May 2013 (6)
  • April 2013 (2)
  • March 2013 (2)
  • January 2013 (1)
  • November 2012 (2)
  • HOME
  • BLOG
  • CONTACT ME
  • DISCLAIMER & COPYRIGHTS

Copyright © 2025

%d