Last active
April 19, 2024 01:14
-
-
Save MihailJP/4563140 to your computer and use it in GitHub Desktop.
Notepad++ syntax highlighting definition file for Scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<NotepadPlus> | |
<UserLang name="Scala" ext="scala" udlVersion="2.0"> | |
<Settings> | |
<Global caseIgnored="no" allowFoldOfComments="no" forceLineCommentsAtBOL="no" foldCompact="no" /> | |
<Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments" id="0">00// 01 02 03/* 04*/</Keywords> | |
<Keywords name="Numbers, additional" id="1"></Keywords> | |
<Keywords name="Numbers, prefixes" id="2">0x</Keywords> | |
<Keywords name="Numbers, extras with prefixes" id="3">a b c d e f A B C D E F</Keywords> | |
<Keywords name="Numbers, suffixes" id="4">F f D d L l</Keywords> | |
<Keywords name="Operators1" id="5">: = => <- <: <% >: # @ ⇒ ← | ^ & < > ! + - * / % ; , . ( )</Keywords> | |
<Keywords name="Operators2" id="6"></Keywords> | |
<Keywords name="Folders in code1, open" id="7">{ [</Keywords> | |
<Keywords name="Folders in code1, middle" id="8"></Keywords> | |
<Keywords name="Folders in code1, close" id="9">} ]</Keywords> | |
<Keywords name="Folders in code2, open" id="10"></Keywords> | |
<Keywords name="Folders in code2, middle" id="11"></Keywords> | |
<Keywords name="Folders in code2, close" id="12"></Keywords> | |
<Keywords name="Folders in comment, open" id="13"></Keywords> | |
<Keywords name="Folders in comment, middle" id="14"></Keywords> | |
<Keywords name="Folders in comment, close" id="15"></Keywords> | |
<Keywords name="Keywords1" id="16">abstract case catch class def do else extends false final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try true type val var while with yield _</Keywords> | |
<Keywords name="Keywords2" id="17">Any AnyRef AnyVal App Application Array Boolean Byte Char Cloneable Console DelayedInit deprecated deprecatedName Double Dynamic Enumeration Equals FallbackArrayBuilding Float Function Function1 Function2 Immutable inline Int language languageFeature Long LowPriorityImplicits MatchError Mutable native noinline None Nothing NotImplementedError NotNull Null Option PartialFunction Predef Product Product1 Product2 Proxy remote Responder ScalaObject ScalaReflectionException Serializable SerialVersionUID Short Some Specializable specialized StringContext Symbol throws transient Tuple1 Tuple2 unchecked UninitializedError UninitializedFieldError Unit volatile</Keywords> | |
<Keywords name="Keywords3" id="18">\'</Keywords> | |
<Keywords name="Keywords4" id="19">ArrowAssoc Class DummyImplicit Ensuring Function Manifest Map OptManifest Pair Set String Triple $scope: TopScope.type ???: NoManifest assert assume classOf identity implicitly locally manifest optManifest print printf println readBoolean readByte readChar readDouble readFloat readInt readLine readLong readShort readf readf1 readf2 readf3 require</Keywords> | |
<Keywords name="Keywords5" id="20">Boolean2boolean Boolean2booleanNullConflict Byte2byte Byte2byteNullConflict Character2char Character2charNullConflict Double2double Double2doubleNullConflict Float2float Float2floatNullConflict Integer2int Integer2intNullConflict Long2long Long2longNullConflict Short2short Short2shortNullConflict StringCanBuildFrom any2ArrowAssoc any2Ensuring any2stringadd any2stringfmt arrayToCharSequence augmentString boolean2Boolean boolean2BooleanConflict booleanArrayOps booleanWrapper byte2Byte byte2ByteConflict byteArrayOps byteWrapper char2Character char2CharacterConflict charArrayOps charWrapper conforms double2Double double2DoubleConflict doubleArrayOps doubleWrapper exceptionWrapper fallbackStringCanBuildFrom float2Float float2FloatConflict floatArrayOps floatWrapper genericArrayOps genericWrapArray int2Integer int2IntegerConflict intArrayOps intWrapper long2Long long2LongConflict longArrayOps longWrapper refArrayOps seqToCharSequence short2Short short2ShortConflict shortArrayOps shortWrapper tuple2ToZippedOps tuple3ToZippedOps unaugmentString unitArrayOps unwrapString wrapBooleanArray wrapByteArray wrapCharArray wrapDoubleArray wrapFloatArray wrapIntArray wrapLongArray wrapRefArray wrapShortArray wrapString wrapUnitArray</Keywords> | |
<Keywords name="Keywords6" id="21"></Keywords> | |
<Keywords name="Keywords7" id="22"></Keywords> | |
<Keywords name="Keywords8" id="23"></Keywords> | |
<Keywords name="Delimiters" id="24">00" 01\ 02" 03` 04 05` 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords> | |
</KeywordLists> | |
<Styles> | |
<WordsStyle name="DEFAULT" styleID="0" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="COMMENTS" styleID="1" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="256" /> | |
<WordsStyle name="LINE COMMENTS" styleID="2" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="NUMBERS" styleID="3" fgColor="8080FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="KEYWORDS1" styleID="4" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" /> | |
<WordsStyle name="KEYWORDS2" styleID="5" fgColor="0080FF" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" /> | |
<WordsStyle name="KEYWORDS3" styleID="6" fgColor="808080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="KEYWORDS4" styleID="7" fgColor="0080C0" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" /> | |
<WordsStyle name="KEYWORDS5" styleID="8" fgColor="0080C0" bgColor="FFFF80" fontName="" fontStyle="3" nesting="0" /> | |
<WordsStyle name="KEYWORDS6" styleID="9" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="KEYWORDS7" styleID="10" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="KEYWORDS8" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="OPERATORS" styleID="12" fgColor="0000A0" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" /> | |
<WordsStyle name="FOLDER IN CODE1" styleID="13" fgColor="0000A0" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" /> | |
<WordsStyle name="FOLDER IN CODE2" styleID="14" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="FOLDER IN COMMENT" styleID="15" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS1" styleID="16" fgColor="808080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS2" styleID="17" fgColor="808000" bgColor="FFFFFF" fontName="" fontStyle="2" nesting="0" /> | |
<WordsStyle name="DELIMITERS3" styleID="18" fgColor="808040" bgColor="FFFFFF" fontName="" fontStyle="2" nesting="0" /> | |
<WordsStyle name="DELIMITERS4" styleID="19" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS5" styleID="20" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS6" styleID="21" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS7" styleID="22" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS8" styleID="23" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
</Styles> | |
</UserLang> | |
</NotepadPlus> |
Thanks a lot!
How should I use this file?
How should I use this file?
I know I'm late to the party, but simply paste this code in a file scala.udl.xml
in the folder for user defined languages (on Windows, under %appdata%\Notepad++\userDefineLangs
), and restart Notepad++.
How should I use this file?
For Windows follow below steps:
- Navigate to below path:
C:\Users\<userID>\AppData\Roaming\Notepad++\userDefineLangs
- Create empty file with name:
scala.udl.xml
- Open newly created-
scala.udl.xml
file and paste the whole code and save it - Restart Notepad++
- Now
Scala
will get added belowUser Defined Language
inLanguage
menu item
thank you so much :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great and thank you !