Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Velocity syntax highlighting for Notepad++, Marketo-specific
<NotepadPlus>
<UserLang name="Velocity" ext="vm" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="yes" Keywords3="yes" Keywords4="yes" Keywords5="yes" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">03#* 04*# 00## 01 02</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
<Keywords name="Numbers, extras1"></Keywords>
<Keywords name="Numbers, extras2"></Keywords>
<Keywords name="Numbers, suffix1"></Keywords>
<Keywords name="Numbers, suffix2"></Keywords>
<Keywords name="Numbers, range"></Keywords>
<Keywords name="Operators1">( ) &lt; = &gt;</Keywords>
<Keywords name="Operators2"></Keywords>
<Keywords name="Folders in code1, open">#if #foreach #macro #{if}</Keywords>
<Keywords name="Folders in code1, middle"></Keywords>
<Keywords name="Folders in code1, close">#end #{end}</Keywords>
<Keywords name="Folders in code2, open"></Keywords>
<Keywords name="Folders in code2, middle"></Keywords>
<Keywords name="Folders in code2, close"></Keywords>
<Keywords name="Folders in comment, open"></Keywords>
<Keywords name="Folders in comment, middle"></Keywords>
<Keywords name="Folders in comment, close"></Keywords>
<Keywords name="Keywords1">#break #elseif #else #evaluate #set #include #parse #stop #template class</Keywords>
<Keywords name="Keywords2">#a #b #c #d #ea #eb #ec #ed #ee #ef #eg #eh #ei #ej #ek #ela #elb #elc #eld #ele #elf #elg #elh #eli #elj #elk #ell #elm #eln #elo #elp #elq #elr #elsa #elsb #elsc #elsd #elsf #elsg #elsh #elsi #elsj #elsk #elsl #elsm #elsn #elso #elsp #elsq #elsr #elss #elst #elsu #elsv #elsw #elsx #elsy #elsz #elt #elu #elv #elw #elx #ely #elz #em #ena #enb #enc #ene #enf #eng #enh #eni #enj #enk #enl #enm #enn #eno #enp #enq #enr #ens #ent #enu #env #enw #enx #eny #enz #eo #ep #eq #er #es #et #eu #ev #ew #ex #ey #ez #eA #eB #eC #eD #eE #eF #eG #eH #eI #eJ #eK #eL #eM #eN #eO #eP #eQ #eR #eS #eT #eU #eV #eW #eX #eY #eZ #e0 #e1 #e2 #e3 #e4 #e5 #e6 #e7 #e8 #e9 #e_ #e- #fa #fb #fc #fd #fe #ff #fg #fh #fi #fj #fk #fl #fm #fn #foa #fob #foc #fod #foe #fof #fog #foh #foi #foj #fok #fol #fom #fon #foo #fop #foq #fos #fot #fou #fov #fow #fox #foy #foz #fp #fq #fr #fs #ft #fu #fv #fw #fx #fy #fz #fA #fB #fC #fD #fE #fF #fG #fH #fI #fJ #fK #fL #fM #fN #fO #fP #fQ #fR #fS #fT #fU #fV #fW #fX #fY #fZ #f0 #f1 #f2 #f3 #f4 #f5 #f6 #f7 #f8 #f9 #f_ #f- #g #h #ia #ib #ic #id #ie #ig #ih #ii #ij #ik #il #im #in #io #ip #iq #ir #is #it #iu #iv #iw #ix #iy #iz #iA #iB #iC #iD #iE #iF #iG #iH #iJ #iK #iL #iM #iN #iO #iP #iQ #iR #iS #iT #iU #iV #iW #iX #iY #iZ #i0 #i1 #i2 #i3 #i4 #i5 #i6 #i7 #i8 #i9 #i_ #i- #j #k #l #maa #mab #maca #macb #macc #macd #mace #macf #macg #mach #maci #macj #mack #macl #macm #macn #maco #macp #macq #macra #macrb #macrc #macrd #macre #macrf #macrg #macrh #macri #macrj #macrk #macrl #macrm #macrn #macrp #macrq #macrr #macrs #macrt #macru #macrv #macrw #macrx #macry #macrz #macs #mact #macu #macv #macw #macx #macy #macz #mad #mae #maf #mag #mah #mai #maj #mak #mal #mam #man #mao #map #maq #mar #mas #mat #mau #mav #maw #max #may #maz #mb #mc #md #me #mf #mg #mh #mi #mj #mk #ml #mm #mn #mo #mp #mq #mr #ms #mt #mu #mv #mw #mx #my #mz #mA #mB #mC #mD #mE #mF #mG #mH #mI #mJ #mK #mL #mM #mN #mO #mP #mQ #mR #mS #mT #mU #mV #mW #mX #mY #mZ #m0 #m1 #m2 #m3 #m4 #m5 #m6 #m7 #m8 #m9 #m_ #m- #n #o #p #q #r #s #t #u #v #w #x #y #z #A #B #C #D #E #F #G #H #I #J #K #L #M #N #O #P #Q #R #S #T #U #V #W #X #Y #Z</Keywords>
<Keywords name="Keywords3">$AccessController $AppWalker $ApplicationLister $AsynchronousRequestHandler $BCM $BpeeFactory $Browser $CalendarPortlet $ChartHelper $Chat $Codec $CollectionFactory $Constants $DC $DEBUG $DIMHelper $DataTransferCallable $DbUtil $DefaultMaker $DistributionControl $DoubletService $DrFilterHelper $drRecord $DtUtil $ESC $Error $ExceptionUtil $Exchange $FCKConnectorResponseFactory $Factory $FieldFormatter $FileHelper $FileUtil $Filter $ForumInfo $FramesetHelper $HelperFactory $JSON $LayoutManager $ListBoxControl $ListFormatter $Loader $LogAnalyzer $MBGallery $MassMailCallable $Math $Menu $MenuCloud $NewsControllerUtil $ObjectHelper $PageLister $PageUtil $PolicyBrowserFactory $PollHelper $Portal $PortalLayoutFactory $PreparedQuery $ProcessingContext $QNameFactory $RDFCallable $RendererFactory $RenderingContext $Request $Response $RtCache $SaucMenu $SearchUtil $Session $SettingsHelper $SharedState $Sort $SystemHelper $TextUtil $TickerMan $Unique $UrlBuilder $User $UserProfileCls $VDiff $VH $VHHelper $VelocityContext $VelocityUtil $Wiki $Zebra $defaultLanguage $lang $layout</Keywords>
<Keywords name="Keywords4">$lead. ${lead ${OpportunityList $OpportunityList $PplMobileAppInstallList ${PplMobileAppInstallList</Keywords>
<Keywords name="Keywords5">$ !$</Keywords>
<Keywords name="Keywords6"></Keywords>
<Keywords name="Keywords7"></Keywords>
<Keywords name="Keywords8"></Keywords>
<Keywords name="Delimiters">00&apos; 01 02&apos; 03&quot; 04 05&quot; 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" nesting="0" />
<WordsStyle name="COMMENTS" fgColor="A8A8A8" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" nesting="0" />
<WordsStyle name="LINE COMMENTS" fgColor="A8A8A8" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" nesting="0" />
<WordsStyle name="NUMBERS" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" nesting="0" />
<WordsStyle name="KEYWORDS1" fgColor="CB4B16" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" nesting="0" />
<WordsStyle name="KEYWORDS2" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="3" fontSize="" nesting="0" />
<WordsStyle name="KEYWORDS3" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="3" fontSize="" nesting="0" />
<WordsStyle name="KEYWORDS4" fgColor="D33682" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="" nesting="0" />
<WordsStyle name="KEYWORDS5" fgColor="D33682" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="OPERATORS" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="" nesting="0" />
<WordsStyle name="FOLDER IN CODE1" fgColor="CB4B16" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="" nesting="0" />
<WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS1" fgColor="808040" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS2" fgColor="859900" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" nesting="0" />
<WordsStyle name="DELIMITERS3" fgColor="6C71C4" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
</Styles>
</UserLang>
</NotepadPlus>
@thrillcox

This comment has been minimized.

Copy link

@thrillcox thrillcox commented Sep 6, 2017

So helpful, thanks for taking the time to create this!

@dupinder

This comment has been minimized.

Copy link

@dupinder dupinder commented Oct 11, 2018

please add HTML formatting along with velocity Template format . It will be legendary

@BidiM

This comment has been minimized.

Copy link

@BidiM BidiM commented Aug 31, 2020

import button in user defined language in notepad++ would successfully import but, velocity would not show up in the language menu.

Rename (or merge into if already existing) this xml file into userDefineLang.xml
and then put userDefineLang.xml file in C:\Users[user]\AppData\Roaming\Notepad++

or use %APPDATA%\Notepad++

After a restart of notepad++ you'll find Velocity at the bottom of the Language menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment