Last active
September 22, 2017 07:57
-
-
Save Tattoo/10103319 to your computer and use it in GitHub Desktop.
Robot Framework syntax hilighting for Notepad++
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
<!-- take into use: | |
Save this file | |
Open Notepad++ | |
Select menu: Language > Define your language... | |
You get a popup. Select "Import", navigate to xml-file | |
Click "Save as" and name your file eg. "RobotFramework" | |
Now you can open a Robot test suite file and select from Languages -menu the correct language (in the bottom) | |
--> | |
<NotepadPlus> | |
<UserLang name="RobotFramework" ext="txt"> | |
<Settings> | |
<Global caseIgnored="no" /> | |
<TreatAsSymbol comment="no" commentLine="no" /> | |
<Prefix words1="yes" words2="no" words3="yes" words4="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Delimiters">{*0}*0</Keywords> | |
<Keywords name="Folder+"></Keywords> | |
<Keywords name="Folder-"></Keywords> | |
<Keywords name="Operators">$ @</Keywords> | |
<Keywords name="Comment">1 1 2 2 0comment 0COMMENT 0Comment 0#</Keywords> | |
<Keywords name="Words1">CallMethod
Catenate
ConvertToBinary
ConvertToBoolean
ConvertToHex
ConvertToInteger
ConvertToNumber
ConvertToOctal
ConvertToString
CreateList
Evaluate
ExitForLoop
Fail
FatalError
GetCount
GetLength
GetLibraryInstance
GetTime
GetVariableValue
GetVariables
ImportLibrary
ImportResource
ImportVariables
KeywordShouldExist
LengthShouldBe
Log
LogMany
LogVariables
NoOperation
RegexpEscape
RemoveTags
RepeatKeyword
ReplaceVariables
RunKeyword
RunKeywordAndContinueOnFailure
RunKeywordAndExpectError
RunKeywordAndIgnoreError
RunKeywordIf
RunKeywordIfAllCriticalTestsPassed
RunKeywordIfAllTestsPassed
RunKeywordIfAnyCriticalTestsFailed
RunKeywordIfAnyTestsFailed
RunKeywordIfTestFailed
RunKeywordIfTestPassed
RunKeywordIfTimeoutOccurred
RunKeywordUnless
RunKeywords
SetGlobalVariable
SetLibrarySearchOrder
SetLogLevel
SetSuiteVariable
SetTags
SetTestMessage
SetTestVariable
SetVariable
SetVariableIf
ShouldBeEmpty
ShouldBeEqual
ShouldBeEqualAsIntegers
ShouldBeEqualAsNumbers
ShouldBeEqualAsStrings
ShouldBeTrue
ShouldContain
ShouldContainXTimes
ShouldEndWith
ShouldMatch
ShouldMatchRegexp
ShouldNotBeEmpty
ShouldNotBeEqual
ShouldNotBeEqualAsIntegers
ShouldNotBeEqualAsNumbers
ShouldNotBeEqualAsStrings
ShouldNotBeTrue
ShouldNotContain
ShouldNotEndWith
ShouldNotMatch
ShouldNotMatchRegexp
ShouldNotStartWith
ShouldStartWith
Sleep
VariableShouldExist
VariableShouldNotExist
WaitUntilKeywordSucceeds
AppendToFile
CopyDirectory
CopyFile
CountDirectoriesInDirectory
CountFilesInDirectory
CountItemsInDirectory
CreateDirectory
CreateFile
DirectoryShouldBeEmpty
DirectoryShouldExist
DirectoryShouldNotBeEmpty
DirectoryShouldNotExist
EmptyDirectory
EnvironmentVariableShouldBeSet
EnvironmentVariableShouldNotBeSet
FileShouldBeEmpty
FileShouldExist
FileShouldNotBeEmpty
FileShouldNotExist
GetBinaryFile
GetEnvironmentVariable
GetFile
GetFileSize
GetModifiedTime
GrepFile
JoinPath
JoinPaths
ListDirectoriesInDirectory
ListDirectory
ListFilesInDirectory
LogFile
MoveDirectory
MoveFile
NormalizePath
ReadProcessOutput
RemoveDirectory
RemoveEnvironmentVariable
RemoveFile
RemoveFiles
Run
RunAndReturnRc
RunAndReturnRcAndOutput
SetEnvironmentVariable
SetModifiedTime
ShouldExist
ShouldNotExist
SplitExtension
SplitPath
StartProcess
StopAllProcesses
StopProcess
SwitchProcess
Touch
WaitUntilCreated
WaitUntilRemoved
LogScreenshot
SaveScreenshot
SaveScreenshotTo
SetScreenshotDirectory
TakeScreenshot
TakeScreenshotWithoutEmbedding
CloseAllConnections
CloseConnection
ExecuteCommand
Login
OpenConnection
Read
ReadUntil
ReadUntilPrompt
ReadUntilRegexp
SetDefaultLogLevel
SetNewline
SetPrompt
SetTimeout
SwitchConnection
Write
WriteBare
WriteUntilExpectedOutput
AppendToList
CombineLists
ConvertToList
CopyDictionary
CopyList
CountValuesInList
CreateDictionary
DictionariesShouldBeEqual
DictionaryShouldContainKey
DictionaryShouldContainSubDictionary
DictionaryShouldContainValue
DictionaryShouldNotContainKey
DictionaryShouldNotContainValue
GetDictionaryItems
GetDictionaryKeys
GetDictionaryValues
GetFromDictionary
GetFromList
GetIndexFromList
GetSliceFromList
InsertIntoList
KeepInDictionary
ListShouldContainSubList
ListShouldContainValue
ListShouldNotContainDuplicates
ListShouldNotContainValue
ListsShouldBeEqual
LogDictionary
LogList
RemoveFromDictionary
RemoveFromList
RemoveValuesFromList
ReverseList
SetListValue
SetToDictionary
SortList
FetchFromLeft
FetchFromRight
GenerateRandomString
GetLine
GetLineCount
GetLinesContainingString
GetLinesMatchingPattern
GetLinesMatchingRegexp
GetSubstring
ReplaceString
ReplaceStringUsingRegexp
ShouldBeLowercase
ShouldBeString
ShouldBeTitlecase
ShouldBeUppercase
ShouldNotBeString
SplitString
SplitStringFromRight
SplitToLines
ExecuteManualStep
GetSelectionFromUser
GetValueFromUser
PauseExecution
AddLocationStrategy
AlertShouldBePresent
AssignIdToElement
CallSeleniumApi
CapturePageScreenshot
CaptureScreenshot
CheckboxShouldBeSelected
CheckboxShouldNotBeSelected
ChooseCancelOnNextConfirmation
ChooseFile
ClickButton
ClickElement
ClickFlexElement
ClickImage
ClickLink
CloseAllBrowsers
CloseBrowser
CloseWindow
ConfirmAction
CurrentFrameContains
CurrentFrameShouldContain
DeleteAllCookies
DeleteCookie
DoubleClickElement
DoubleClickFlexElement
DragAndDrop
ElementShouldBeDisabled
ElementShouldBeEnabled
ElementShouldBeVisible
ElementShouldContain
ElementShouldNotBeVisible
ElementTextShouldBe
ExecuteJavascript
FlexElementPropertyShouldBe
FlexElementShouldExist
FlexElementShouldNotExist
FlexElementTextShouldBe
Focus
FrameShouldContain
FrameShouldContainText
GetAlertMessage
GetAllLinks
GetCookieValue
GetCookies
GetElementAttribute
GetHorizontalPosition
GetListItems
GetLocation
GetMatchingXpathCount
GetSelectedListLabel
GetSelectedListLabels
GetSelectedListValue
GetSelectedListValues
GetSource
GetTableCell
GetText
GetTitle
GetValue
GetVerticalPosition
GetWindowIdentifiers
GetWindowNames
GetWindowTitles
GoBack
GoTo
InputPassword
InputText
InputTextIntoFlexElement
ListSelectionShouldBe
ListShouldHaveNoSelections
LocationShouldBe
LocationShouldContain
LogSource
MaximizeBrowserWindow
MouseDown
MouseDownOnImage
MouseDownOnLink
MouseOut
MouseOver
MouseUp
OpenBrowser
OpenContextMenu
PageShouldContain
PageShouldContainButton
PageShouldContainCheckbox
PageShouldContainElement
PageShouldContainImage
PageShouldContainLink
PageShouldContainList
PageShouldContainRadioButton
PageShouldContainTextfield
PageShouldNotContain
PageShouldNotContainButton
PageShouldNotContainCheckbox
PageShouldNotContainElement
PageShouldNotContainImage
PageShouldNotContainLink
PageShouldNotContainList
PageShouldNotContainRadioButton
PageShouldNotContainTextfield
PressKey
PressKeyNative
RadioButtonShouldBeSetTo
RadioButtonShouldNotBeSelected
RegisterKeywordToRunOnFailure
ReloadPage
SelectAllFromList
SelectCheckbox
SelectFlexApplication
SelectFrame
SelectFromFlexElement
SelectFromList
SelectRadioButton
SelectWindow
SetSeleniumSpeed
SetSeleniumTimeout
Simulate
StartSeleniumServer
StopSeleniumServer
SubmitForm
SwitchBrowser
TableCellShouldContain
TableColumnShouldContain
TableFooterShouldContain
TableHeaderShouldContain
TableRowShouldContain
TableShouldContain
TextfieldShouldContain
TextfieldValueShouldBe
TitleShouldBe
UnselectCheckbox
UnselectFrame
UnselectFromList
WaitForCondition
WaitForFlexElement
WaitUntilPageContains
WaitUntilPageContainsElement
WaitUntilPageLoaded
XpathShouldMatchXTimes SetSuiteDocumentation</Keywords> | |
<Keywords name="Words2">AutoItSetOption
BlockInput
CDTray
ClipGet
ClipPut
ControlClick
ControlCommand
ControlDisable
ControlEnable
ControlFocus
ControlGetFocus
ControlGetHandle
ControlGetPosHeight
ControlGetPosWidth
ControlGetPosX
ControlGetPosY
ControlGetText
ControlHide
ControlListView
ControlMove
ControlSend
ControlSetText
ControlShow
ControlTreeView
DriveMapAdd
DriveMapDel
DriveMapGet
GetActiveWindowImage
GetAutoItVersion
GetScreenImage
GetVersion
IniDelete
IniRead
IniWrite
Init
IsAdmin
MouseClick
MouseClickDrag
MouseDown
MouseGetCursor
MouseGetPosX
MouseGetPosY
MouseMove
MouseUp
MouseWheel
Opt
PixelChecksum
PixelGetColor
PixelSearch
ProcessClose
ProcessExists
ProcessSetPriority
ProcessWait
ProcessWaitClose
RegDeleteKey
RegDeleteVal
RegEnumKey
RegEnumVal
RegRead
RegWrite
Run
RunAsSet
RunWait
Send
Shutdown
StatusbarGetText
ToolTip
WaitForActiveWindow
WinActivate
WinActive
WinClose
WinExists
WinGetCaretPosX
WinGetCaretPosY
WinGetClassList
WinGetClientSizeHeight
WinGetClientSizeWidth
WinGetHandle
WinGetPosHeight
WinGetPosWidth
WinGetPosX
WinGetPosY
WinGetProcess
WinGetState
WinGetText
WinGetTitle
WinKill
WinMenuSelectItem
WinMinimizeAll
WinMinimizeAllUndo
WinMove
WinSetOnTop
WinSetState
WinSetTitle
WinSetTrans
WinWait
WinWaitActive
WinWaitClose
WinWaitNotActive</Keywords> | |
<Keywords name="Words3">k</Keywords> | |
<Keywords name="Words4">ConsoleWrite ConsoleAllVariables RandomNumber CreateNetworkDirectory</Keywords> | |
</KeywordLists> | |
<Styles> | |
<WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" /> | |
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" /> | |
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" /> | |
<WordsStyle name="KEYWORD1" styleID="5" fgColor="008040" bgColor="FFFFFF" fontName="" fontStyle="0" /> | |
<WordsStyle name="KEYWORD2" styleID="6" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" /> | |
<WordsStyle name="KEYWORD3" styleID="7" fgColor="800080" bgColor="FFFFFF" fontName="" fontStyle="4" /> | |
<WordsStyle name="KEYWORD4" styleID="8" fgColor="804000" bgColor="FFFFFF" fontName="" fontStyle="0" /> | |
<WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" /> | |
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="0080FF" bgColor="FFFFFF" fontName="" fontStyle="0" /> | |
<WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" /> | |
<WordsStyle name="OPERATOR" styleID="10" fgColor="808040" bgColor="FFFFFF" fontName="" fontStyle="1" /> | |
<WordsStyle name="DELIMINER1" styleID="14" fgColor="808040" bgColor="FFFFFF" fontName="" fontStyle="0" /> | |
<WordsStyle name="DELIMINER2" styleID="15" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="1" /> | |
<WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" /> | |
</Styles> | |
</UserLang> | |
</NotepadPlus> |
it did n't worked for me for notepad ++ 7.5.1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fork for highlighting files with ".robot" extension: https://gist.github.com/jerblin/75752fe2af57a6d43af023ad88dd7947