Skip to content

Instantly share code, notes, and snippets.

@triple-j
Last active June 19, 2021 06:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save triple-j/db8d76ede94ffdae9096a54fe8a1e0f1 to your computer and use it in GitHub Desktop.
Save triple-j/db8d76ede94ffdae9096a54fe8a1e0f1 to your computer and use it in GitHub Desktop.
BrightScript Syntax Highlighter Notepad++ Extension (Modified from http://support.brightsign.biz/hc/en-us/articles/218067887-Developer-Resources-and-Utilities)
<NotepadPlus>
<UserLang name="BrightScript-Obsidian" ext="brs">
<Settings>
<Global caseIgnored="yes" />
<TreatAsSymbol comment="no" commentLine="no" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">&quot;00&quot;00</Keywords>
<Keywords name="Folder+"></Keywords>
<Keywords name="Folder-"></Keywords>
<Keywords name="Operators">- ! &quot; # $ % &amp; ( ) * , . / : ; @ [ \ ] ^ ` { | } ~ + &lt; = &gt;</Keywords>
<Keywords name="Comment">1 2 0&apos; 0REM</Keywords>
<Keywords name="Words1">createobject RebootSystem sleep stop rnd type box run eval printeval getlastruncompileerror getlastrunruntimeerror wait getinterface UPTIME LISTDIR READASCIIFILE WRITEASCIIFILE COPYFILE MATCHFILES DELETEFILE Peek DELETEDIRECTORY CREATEDIRECTORY FORMATDRIVE UCASE LCASE ASC CHR INSTR LEFT LEN MID RIGHT STR STRING VAL ABS ATN COS CSNG CDBL EXP FIX INT LOG SGN SIN SQR TAN ? print ShutdownSystem MoveFile GetDefaultDrive strtoi rungarbagecollector setdefaultdrive enablezonesupport enableaudiomixer pi pop push shift unshift delete count append clear reset next( isnext isempty getentry setentry WriteFile ReadFile AppendFile SetResize ToHexString FromHexString ToBase64String FromBase64String ToAsciiString FromAsciiString GetSignedByte GetSignedLong IsLittleEndianCPU GetDouble SetDouble GetSub SetSub DoesExist GetBoolean SetBoolean Reset IsNext IsEmpty AddReplace Lookup DoesExist Delete SetModeCaseSensitive LookupCi Append SetPort ToStr SetString AppendString GetEntityEncode Tokenize Trim ToInt ToFloat SetInt AddTail AddHead ResetIndex GetIndex GetTail GetHead IsMatch Match Replace ReplaceAll Split GetAttributes GetText GetChildElements GetNamedElements GetNamedElementsCi Simplify SetVolume SetMute GetOutput GetIdentity SetPcmAudioOutputs SetCompressedAudioOutputs SetAudioOutput SetAudioMode SetUsbAudioPort MapStereoOutput MapDigitalOutput SetChannelVolumes SetSpdifMute StoreEncryptionKey StoreObfuscatedEncryptionKey SetStereoMappingSpan ConfigureAudioResources SetAudioStream SetAudioOutputAux SetAudioModeAux MapStereoOutputAux SetChannelVolumesAux SetAudioStreamAux Hide Show SetLayer ClearLayer EnableAutoRedraw GetFailureReason SetForegroundColor SetBackgroundColor SetFont SetBackgroundBitmap SetSafeTextRegion SetURL MapFilesFromAssetPool SetZoomLevel EnableSecurity EnableMouseEvents SetPortriat SetAlpha Scroll EnableScrollbars AddFont DisplayBuffer DisplayFile PreloadFile DisplayPreload StopDisplay DisplayFileEx PreloadFileEx SetDefaultMode SetDefaultTransition SetRectangle OverlayImage GetRectangle CreateTestHole SetTransitionDuration SetX SetY SetWidth SetHeight GetX GetY GetWidth GetHeight GetUrl GetTimeSinceLastData GetBufferedDuration GetCurrentMetadata Rebuffer AsyncSaveBuffer RestartBufferRecord GetSourceIdentity SetSourceIdentity GetInt SetCursorPos GetValue SendByte SendLine SendBlock SetSendEol PushString PopStrings GetStringCount GetData SetData GetStandards GetInputs SetStandard GetCurrentStandard SetInput GetCurrentInput GetControls SetControlValue GetCurrentControlValue GetFormats SetFormat GetCurrentFormat SetMode PlayEx GetResX GetResY GetSafeX GetSafeY GetSafeWidth GetSafeHeight SetPowerSaveMode SetMultiscreenBezel SetVolumeAux SetUsbAudioPortAux PlayStaticImage SetViewMode EnableSafeRegionTrimming PlayFile Play SetLoopMode ClearEvents AddEvent StopClear Pause Resume GetEvent SetEvent SetResolution AddRectangleRegion AddCircleRegion ClearRegions GetDeviceName SetCursorPosition SetCursorBitmap EnableCursor EnableRollover EnableRegion SetRollOverOrigin IsMousePresent EnableSerialTouchscreen SetSerialTouchscreenConfiguration StartCalibration GetCalibrationStatus SetBaudRate NotUsed1 NotUsed2 Unpack SetPassword UnpackFile Hash SetReceiveEol ReadBlock ReadLine ReadByteIfAvailable ReadByte AtEof Flush AsyncFlush SeekAbsolute SeekRelative SeekToEnd CurrentPosition GetSectionList Read Write Exists GetKeyList strI Open Create Close CreateStatement RunBackground SetMemoryLimit SetTempDirectory GetTransactionId GetSqlResult BindByName BindByOffset BindText BindInteger Finalise GetString GetBytesPerBlock GetSizeInMegabytes GetUsedInMegabytes GetFreeInMegabytes GetFileSystemType GetStorageCardInfo AddAsset AddAssets EnableUnsafeAuthentication AsyncDownload AsyncSuggestCache AsyncCancel EnablePeerVerification EnableHostVerification SetCertificatesFile SetUserAndPassword AddHeader SetHeaders SetMinimumTransferRate SetProxy SetFileProgressIntervalSeconds SetFileRetryCount SetRelativeLinkPrefix BindToInterface SetUserData GetUserData GetName GetResponseCode GetFileIndex GetFileName GetFileCount GetCurrentFileTransferredMegabytes GetCurrentFileSizeMegabytes GetCurrentFilePercentage ProtectAssets UnprotectAssets UnprotectAllAssets ReserveMegabytes GetPoolSizeInMegabytes Validate QueryFiles AssetsReady GetPoolFilePath GetPoolFileInfo EstimateRealizedSizeInMegabytes Realize ValidateFiles Send SetDestination GetByteArray GetSourceHost GetSourcePort WaitMessage SetResponseBodyString SetResponseBodyFile GetRequestBodyString GetRequestHeader GetRequestHeaders GetRequestParam GetRequestParams AddResponseHeader AddResponseHeaders GetRequestBodyFile SendResponse GetFormData AddGetFromFile AddGetFromEvent AddPostToString AddPostToFile AddPostToFormData GetPort SetupDWS GetClientIdentifier GetProxy SetClientIdentifier SetObfuscatedWiFiPassphrase SetInboundShaperRate SetRoutingMetric SetDHCP SetIP4Address SetIP4Netmask SetIP4Broadcast SetIP4Gateway SetWiFiESSID SetWiFiPassphrase SetDomain AddDNSServer Apply SetTimeServer GetTimeServer SetHostName GetHostName ScanWiFi GetCurrentConfig TestInterface TestInternetConnectivity ParseFile ParseString GetNextArticle GetTitle GetDescription GetTimestampInSeconds SetTitle SetDescription SetTimestampInSeconds GetToFile AddOidHandler GetOidValue SetOidValue Start ReadFromFile ReadFromString WriteToFile WriteToString GetMetadata GetFileList LookupMetadata EqualTo GetFile FilterFiles FilesEqualTo GetAssets BindToPort SetLineEventPort SetByteEventPort SetMatcher ConnectTo Accept AsyncConnectTo GetObject GetResponseHeaders GetBufferSize GetRewindSize GetMinimumFill GetToString AsyncGetToString AsyncGetToFile Head AsyncHead PostFromString PostFromFile AsyncPostFromString AsyncPostFromFile AsyncGetToObject EnableResume EnableEncodings Escape Unescape SetTimeout SetUserAgent PutFromString PutFromFile AsyncPutFromString AsyncPutFromFile AsyncDelete ClearHeaders AddHeaders AsyncMethod SyncMethod SendRawMessage GetStatusByte GetVersion EnableOutput EnableInput GetWholeState IsInputActive SetWholeState SetOutputState GetMessage PostMessage PeekMessage SetMessagePort Add SetEcho SetEol SetInverted GetModel GetVersionNumber GetBootVersion GetBootVersionNumber GetDeviceUptime GetDeviceUniqueId GetFamily GetDeviceLifetime HasFeature SetLanguage GetResource GetLanguage ReadLog GetDayOfWeek GetDay GetMonth GetYear GetHour GetMinute GetSecond GetMillisecond SetDay SetMonth SetYear SetHour SetMinute SetSecond SetMillisecond AddSeconds SubtractSeconds AddMilliseconds SubtractMilliseconds Normalize ToIsoString FromIsoString ToSecondsSinceEpoch FromSecondsSinceEpoch GetLocalDateTime GetUtcDateTime GetZoneDateTime SetLocalDateTime SetUtcDateTime GetTimeZone SetTimeZone IsValid SetTime SetDate SetDayOfWeek SetDateTime SetIdentity Mark TotalMilliseconds TotalSeconds GetSecondsToISO8601Date ProtectFiles IsReady</Keywords>
<Keywords name="Words2">true false invalid object dim integer boolean float void double</Keywords>
<Keywords name="Words3">if then else end while for foreach endif endwhile sub function return Library as exit next each in goto to step elseif</Keywords>
<Keywords name="Words4">not and or</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" styleID="11" fgColor="e0e2e4" bgColor="293134" fontName="" fontStyle="0" />
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="293134" bgColor="e0e2e4" fontName="" fontStyle="0" />
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="293134" bgColor="e0e2e4" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD1" styleID="5" fgColor="678CB1" bgColor="293134" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD2" styleID="6" fgColor="93c763" bgColor="293134" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD3" styleID="7" fgColor="93c763" bgColor="293134" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD4" styleID="8" fgColor="93c763" bgColor="293134" fontName="" fontStyle="0" />
<WordsStyle name="COMMENT" styleID="1" fgColor="66747B" bgColor="293134" fontName="" fontStyle="0" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="66747B" bgColor="293134" fontName="" fontStyle="0" />
<WordsStyle name="NUMBER" styleID="4" fgColor="FFCD22" bgColor="293134" fontName="" fontStyle="0" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="E8E2B7" bgColor="293134" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER1" styleID="14" fgColor="EC7600" bgColor="293134" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER2" styleID="15" fgColor="EC7600" bgColor="293134" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER3" styleID="16" fgColor="293134" bgColor="e0e2e4" fontName="" fontStyle="0" />
</Styles>
</UserLang>
</NotepadPlus>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment