Skip to content

Instantly share code, notes, and snippets.

@rdipardo
Last active September 28, 2023 21:46
Show Gist options
  • Save rdipardo/e500e0e9053e8556350802cf8ab06583 to your computer and use it in GitHub Desktop.
Save rdipardo/e500e0e9053e8556350802cf8ab06583 to your computer and use it in GitHub Desktop.
Notepad++ UDL for F# (Obsidian theme)
<?xml version="1.0" encoding="UTF-8"?>
<!--//
Description: Syntax highlighting for F# 6.0+
Author: Robert Di Pardo <https://github.com/rdipardo>
Version: 2022-10-18
Credits: Style based on the Obsidian theme by Joni Eskelinen, inspired by the Oblivion theme for gedit
//-->
<NotepadPlus>
<UserLang name="F# (Obsidian)" ext="fs fsi fsx fsscript" darkModeTheme="yes" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0"/>
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no"/>
</Settings>
<KeywordLists>
<Keywords name="Delimiters">00((@&quot; $&quot; &quot;)) 01((\ )) 02((&quot;B &quot;)) 03`` 04 05`` 06[&lt; 07 08&gt;] 09&lt;@ 10 11@&gt; 12# 13 14((EOL))</Keywords>
<Keywords name="Folder+"/>
<Keywords name="Folder-"/>
<Keywords name="Numbers, prefix2">0b 0o 0x</Keywords>
<Keywords name="Numbers, extras1">A B C D E F a b c d e f + - _</Keywords>
<Keywords name="Numbers, suffix1">u U</Keywords>
<Keywords name="Numbers, suffix2">I f F l L m M n s y</Keywords>
<Keywords name="Operators1">~ ' ^ + - / * % @ . , : ; ( ) [ ] { } | &lt; = &gt; ?</Keywords>
<Keywords name="Operators2">asr land lor lsl lsr lxor mod sig</Keywords>
<Keywords name="Comment">1(* 2*) 0// 0///</Keywords>
<Keywords name="Keywords1">abstract and as assert async base begin class default delegate do done downcast downto elif else end exception extern false finally fixed for fun function global if in inherit inline interface internal lazy let let! match match! member module mutable namespace new null of open or override private public rec return return! select static struct task then to true try type upcast use use! val void when while with yield yield!</Keywords>
<Keywords name="Keywords2">atomic break checked component const constraint constructor continue eager event external fixed functor global include method mixin object parallel process protected pure sealed tailcall trait virtual volatile</Keywords>
<Keywords name="Keywords3">ArgumentException Array Array2D Array3D Array4D BigInteger Boolean Byte Char Collections Console Core CultureInfo DateTime Decimal Double Environment Error Exception Expr Float FSharp Globalization Int16 Int32 Int64 IntPtr IO Linq List Map Math Microsoft NumberStyles Object Parallel Printf Random Regex ResizeArray SByte Seq Set Single String System UInt16 UInt32 UInt64 UIntPtr</Keywords>
<Keywords name="Keywords4">array bigint bool byte byref char comparison decimal double enum equality exn float float32 inref int int8 int16 int32 int64 list nativeint nativeptr None obj Ok option Option outref ref Result sbyte Some single string unmanaged unativeint uint uint8 uint16 uint32 uint64 unit void voidptr voption</Keywords>
<Keywords name="Keywords5">add allPairs append average averageBy base1 base2 blit cache cast choose chunkBySize collect compareWith concat contains containsKey copy count countBy create createBased delay difference distinct distinctBy empty except exists exists2 exactlyOne fill filter find findBack findIndex findIndexBack findKey fold fold2 foldBack foldBack2 forall forall2 get groupBy head ignore indexed init initBased initInfinite insertAt insertManyAt intersect intersectMany isEmpty isProperSubset isProperSuperset isSubset isSuperset item iter iter2 iteri iteri2 last length length1 length2 length3 length4 map map2 map3 mapFold mapFoldBack mapi mapi2 maxBy maxElement minBy minElement ofArray ofList ofSeq pairwise partition permute pick readonly rebase reduce reduceBack remove removeAt removeManyAt replicate rev scan scanBack singleton skip skipWhile sort sortBy sortByDescending sortDescending sortInPlace sortInPlaceBy sortInPlaceWith sortWith splitAt splitInto sub sum sumBy tail take takeWhile toArray toList toSeq transpose truncate tryExactlyOne tryFind tryFindBack tryFindIndex tryFindIndexBack tryHead tryItem tryFindKey tryLast tryPick unfold union unionMany unzip unzip3 updateAt where windowed zeroCreate zeroCreateBased zip zip3</Keywords>
<Keywords name="Keywords6">abs acos asin atan atan2 bprintf ceil cos cosh eprintf eprintfn failwith failwithf floor fprintf fprintfn fst invalidArg kbprintf kfprintf kprintf ksprintf max min nameof not pown printf printfn raise round seq set sin sinh snd sprintf sqrt tan tanh typeof</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" fgColor="FFF0F5" bgColor="293134" colorStyle="0" fontName="" fontStyle="0" nesting="0"/>
<WordsStyle name="COMMENTS" fgColor="8F9CA2" bgColor="293134" colorStyle="1" fontName="" fontStyle="2" nesting="0"/>
<WordsStyle name="LINE COMMENTS" fgColor="8F9CA2" bgColor="293134" colorStyle="1" fontName="" fontStyle="0" nesting="0"/>
<WordsStyle name="NUMBERS" fgColor="FFCD22" bgColor="293134" colorStyle="1" fontName="" fontStyle="0" nesting="0"/>
<WordsStyle name="KEYWORDS1" fgColor="A082BD" bgColor="293134" colorStyle="1" fontName="" fontStyle="0" nesting="0"/>
<WordsStyle name="KEYWORDS2" fgColor="A082BD" bgColor="293134" colorStyle="1" fontName="" fontStyle="1" nesting="0"/>
<WordsStyle name="KEYWORDS3" fgColor="37A690" bgColor="293134" colorStyle="1" fontName="" fontStyle="1" nesting="0"/>
<WordsStyle name="KEYWORDS4" fgColor="93CDBA" bgColor="293134" colorStyle="1" fontName="" fontStyle="0" nesting="0"/>
<WordsStyle name="KEYWORDS5" fgColor="B3B689" bgColor="293134" colorStyle="1" fontName="" fontStyle="1" nesting="0"/>
<WordsStyle name="KEYWORDS6" fgColor="378BBA" bgColor="293134" colorStyle="1" fontName="" fontStyle="1" nesting="0"/>
<WordsStyle name="OPERATORS" fgColor="678CB1" bgColor="293134" colorStyle="1" fontName="" fontStyle="1" nesting="0"/>
<WordsStyle name="FOLDER IN CODE1" fgColor="E0E2E4" bgColor="293134" colorStyle="0" fontName="" fontStyle="0" nesting="0"/>
<WordsStyle name="FOLDER IN CODE2" fgColor="E0E2E4" bgColor="293134" colorStyle="0" fontName="" fontStyle="0" nesting="0"/>
<WordsStyle name="FOLDER IN COMMENT" fgColor="E0E2E4" bgColor="293134" colorStyle="0" fontName="" fontStyle="0" nesting="0"/>
<WordsStyle name="DELIMITERS1" fgColor="FF7F50" bgColor="293134" colorStyle="1" fontName="" fontStyle="0" nesting="0"/>
<WordsStyle name="DELIMITERS2" fgColor="FF7F50" bgColor="293134" colorStyle="1" fontName="" fontStyle="0" nesting="0"/>
<WordsStyle name="DELIMITERS3" fgColor="93CDBA" bgColor="293134" colorStyle="1" fontName="" fontStyle="0" nesting="0"/>
<WordsStyle name="DELIMITERS4" fgColor="B3B689" bgColor="293134" colorStyle="1" fontName="" fontStyle="0" nesting="65600"/>
<WordsStyle name="DELIMITERS5" fgColor="B3B689" bgColor="293134" colorStyle="1" fontName="" fontStyle="2" nesting="32800"/>
<WordsStyle name="DELIMITERS6" fgColor="FF7F50" bgColor="293134" colorStyle="1" fontName="" fontStyle="2" nesting="0"/>
<WordsStyle name="DELIMITERS7" fgColor="E0E2E4" bgColor="293134" colorStyle="1" fontName="" fontStyle="0" nesting="0"/>
<WordsStyle name="DELIMITERS8" fgColor="E0E2E4" bgColor="293134" colorStyle="1" fontName="" fontStyle="0" nesting="0"/>
</Styles>
</UserLang>
</NotepadPlus>
@rdipardo
Copy link
Author

rdipardo commented Dec 8, 2020

fsharp_obsidian_dm

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