Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6048501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:28:13+00:00 2026-05-23T07:28:13+00:00

I am trying to add require and include as Ruby keywords for Notepad++, but

  • 0

I am trying to add require and include as Ruby keywords for Notepad++, but I am having some trouble. I modified the langs.model.xml file’s ruby language tag as follows:

<Language name="ruby" ext="rb rbw" commentLine="#">
  <Keywords name="instre1">__FILE__ and def end in or self unless __LINE__
     begin defined? ensure module redo super until BEGIN break do false
     next rescue then when END case else for nil retry true while
     alias class elsif if not return undef yield require include
</Keywords> 

However, even after updating this require and include are still not being highlighted like the other keywords. Can someone please advise?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:28:14+00:00Added an answer on May 23, 2026 at 7:28 am

    Notepad++ provides an interface for this so you should use that rather than modify application files.

    Go to Settings > Style Configurator…, visit the Ruby tab, choose the INSTRUCTION category, and add the two keywords there so it looks like this:

    With the easier, interface-provided method out of the way, the real mistake you made is that you modified the langs.model.xml file, but forgot to rename it such that it overwrites the original lang.xml. The *.model.xml files are default example files.

    And with that said, you can still modify the langs.xml file so that the new keywords appear for all Notepad++ themes, but make sure to:

    • Save in %AppData%\Notepad++ instead of %ProgramFiles%\Notepad++ so updating the editor doesn’t revert your changes by overwriting program files (assuming %AppData% is being used)

    • Back up the original langs.xml file, just in case you want to revert to the default

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to setup a view shopping cart/basket page within a site in
I am trying to map the following scenario: // SourceA + SourceB to not
I apologize if this question is slightly subjective... I am trying to figure out
I'm trying to make a wrapper to the STL map container, in order to
I'm trying to write a fluid dynamic simulator on the HTML5 canvas. I've found
I'm trying to load content into a Dojo content pane in a specific html
I'm running the latest cygwin on windows 7 (32-bit), and trying to build an
I've recently switched to emacsclient for most text editing. I am trying to migrate
How can I check if an anchor tag is empty with PHP or preg_match
This is my pagination script, which I've been working on: http://pastebin.com/4mpjdWKD This is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.