Robotframework syntax highlighting for Notepad++

1,655 views
Skip to first unread message

Mallikarjunarao Kosuri

unread,
Dec 28, 2015, 11:11:26 AM12/28/15
to robotframework-users

Hello,


I have created a Robot framework syntax highlighting for Notepad++ which is located at https://github.com/vkosuri/lang-robot


Below screen shot summaries the how it looks and color represents


Blue - Keywords Orange - Variables Green - Comments
 






























Please have a look and update your suggestions/improvements/comments?

Thanks
Malli

Kevin O.

unread,
Dec 29, 2015, 9:07:33 AM12/29/15
to robotframework-users
Cool! Thanks for this.

Kevin

Prashant Katti

unread,
Dec 15, 2016, 5:19:42 AM12/15/16
to robotframework-users
Just used it, and this is very helpful tool for viewing robot code through Notepad++

Mallikarjunarao Kosuri

unread,
Dec 15, 2016, 7:22:25 PM12/15/16
to robotframework-users
Thank you very much.

you can access other robotframework tools, which i have been using/developing from here https://github.com/vkosuri

Pham Nguyen

unread,
Jun 2, 2017, 10:37:31 PM6/2/17
to robotframework-users
It seems this plugin work with .robot file only.

jeff.wa...@gmail.com

unread,
Apr 30, 2019, 12:42:10 PM4/30/19
to robotframework-users
On Friday, June 2, 2017 at 10:37:31 PM UTC-4, Pham Nguyen wrote:
It seems this plugin work with .robot file only.



Syntax highlighting also works with .resource files. Overall, this is a valuable plugin. However, if you include some regexp code, it breaks highlighting after the regexp is defined:


Capture.PNG



Note: I am aware that the Keywords section is duplicated. This is not actual code to be run, it is only to illustrate the broken highlighting after the regular expression is defined.

Here is the robot file if anyone wants to try this out for themselves:

*** Settings ***
Documentation           Verify ability to upgrade and downgrade FW
Suite Setup             yada yada yada   ${VAR_1}   ${VAR_2}
Suite Teardown          yada yada yada   ${VAR_1}   ${VAR_2}

*** Test Cases ***
Test Case 1
    [Documentation]     blah blah blah
    Change FW           ${FW_NEW}
    ${result}=          Check Firmware
    Log                 ${result}

Test Case 2
    [Documentation]     blah blah blah
    Change FW           ${FW_OLD}
    ${result}=          Check Firmware
    Log                 ${result}

*** Keywords ***
Upgrade FW
    [Documentation]     blah blah blah
    Change FW           ${FW_NEW}
    ${result}=          Check Firmware
    Log                 ${result}

Downgrade FW
    [Documentation]     blah blah blah
    Change FW           ${FW_OLD}
    ${result}=          Check Firmware
    Log                 ${result}

*** Variables ***
${regexp}               <i>main.bin<\/i>.*([0-9]+.[0-9]+.[0-9]+.[0-9]+)

*** Test Cases ***
Test Case 1
    [Documentation]     blah blah blah
    Change FW           ${FW_NEW}
    ${result}=          Check Firmware
    Log                 ${result}

Test Case 2
    [Documentation]     blah blah blah
    Change FW           ${FW_OLD}
    ${result}=          Check Firmware
    Log                 ${result}

*** Keywords ***
Upgrade FW
    [Documentation]     blah blah blah
    Change FW           ${FW_NEW}
    ${result}=          Check Firmware
    Log                 ${result}

Downgrade FW
    [Documentation]     blah blah blah
    Change FW           ${FW_OLD}
    ${result}=          Check Firmware
    Log                 ${result}





Reply all
Reply to author
Forward
0 new messages