How can I tell Notepad++ to always use a particular language with a particular file extension












87















I've associated .xul with Notepad++ so if I double-click on a .xul file, it will open in Notepad++. But Notepad++ doesn't know that XUL is just a particular type of XML, so I then have to manually click on "Language > XML" to get XML syntax highlighting. Is there a way that I can tell it: "every time you open a file with the extension .xul, automatically switch to the XML language"?










share|improve this question


















  • 2





    Possible duplicate of Assigning custom extensions to a language's syntax highlighting in Notepad++

    – music2myear
    Jul 25 '17 at 19:13
















87















I've associated .xul with Notepad++ so if I double-click on a .xul file, it will open in Notepad++. But Notepad++ doesn't know that XUL is just a particular type of XML, so I then have to manually click on "Language > XML" to get XML syntax highlighting. Is there a way that I can tell it: "every time you open a file with the extension .xul, automatically switch to the XML language"?










share|improve this question


















  • 2





    Possible duplicate of Assigning custom extensions to a language's syntax highlighting in Notepad++

    – music2myear
    Jul 25 '17 at 19:13














87












87








87


13






I've associated .xul with Notepad++ so if I double-click on a .xul file, it will open in Notepad++. But Notepad++ doesn't know that XUL is just a particular type of XML, so I then have to manually click on "Language > XML" to get XML syntax highlighting. Is there a way that I can tell it: "every time you open a file with the extension .xul, automatically switch to the XML language"?










share|improve this question














I've associated .xul with Notepad++ so if I double-click on a .xul file, it will open in Notepad++. But Notepad++ doesn't know that XUL is just a particular type of XML, so I then have to manually click on "Language > XML" to get XML syntax highlighting. Is there a way that I can tell it: "every time you open a file with the extension .xul, automatically switch to the XML language"?







notepad++






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 11 '10 at 21:54









MatrixFrogMatrixFrog

6681713




6681713








  • 2





    Possible duplicate of Assigning custom extensions to a language's syntax highlighting in Notepad++

    – music2myear
    Jul 25 '17 at 19:13














  • 2





    Possible duplicate of Assigning custom extensions to a language's syntax highlighting in Notepad++

    – music2myear
    Jul 25 '17 at 19:13








2




2





Possible duplicate of Assigning custom extensions to a language's syntax highlighting in Notepad++

– music2myear
Jul 25 '17 at 19:13





Possible duplicate of Assigning custom extensions to a language's syntax highlighting in Notepad++

– music2myear
Jul 25 '17 at 19:13










3 Answers
3






active

oldest

votes


















119














All you have to do is tell Notepad++ that "xul" files are actually "XML" files.




  1. Go to Settings > Style Configurator

  2. Under Language, scroll down and highlight "XML"

  3. At the bottom, under User ext. type in "xul"

  4. Press Save & Close

  5. Open your file and it should now highlight properly.


Some other helpful links:




  • Assigning custom extensions to a language’s syntax highlighting in Notepad++

  • Associating file extensions with highlighters






share|improve this answer





















  • 17





    And if you want to add more than one (for example, I'm also adding 'rdf' -- yup, I'm doing Firefox extension development) then just separate them with spaces.

    – MatrixFrog
    Jun 11 '10 at 22:21






  • 1





    I'm saving it and it works for the session but it doesn't persist. When I restart Notepad++, it's not there anymore.

    – strider
    Mar 27 '14 at 15:31






  • 4





    Run it as Administrator and it persists.

    – strider
    Mar 27 '14 at 15:37






  • 1





    Note that for user-defined languages, the same can be done from the language configuration window in Language > Define your language... > user language : <your language> in the Ext. field.

    – yco
    Apr 20 '16 at 9:54











  • Awsome! +1 for you!

    – Ivijan Stefan Stipić
    Nov 11 '16 at 17:55



















3














Here is the instructions for user defined languages. With pictures.



Select: Language --> Define Your Language:



Select: Language --> Define Your Language



Make sure you omit "." from extension in the Ext. box, or it wont work:



Make sure you omit "." from extension in the Ext. box, or it wont work.






share|improve this answer





















  • 1





    Please read the question again carefully. Your answer does not answer the original question. This is an answer to some other question.

    – DavidPostill
    Jan 29 '17 at 15:35











  • And yet it is very useful. Often when searching for a specific question you will find a more generic question. That's what happened to me. The first answer didn't solve my problem because I was looking for a slight variant of the issue (a user defined language). This answer helped me where the accepted one did not.

    – Scott Beeson
    Feb 21 at 14:29



















-1














Update for version 7.5+ and for multiple extensions



1) Settings > Style Configurator



2) look under "Languages:" , choose your target language.



3) look at textbox under "User ext. :"



Simple type the extension you wish to associate for that language. For multiple file extensions, it should be separated via SPACE. Do not use any "." period/dot characters.



EG. for SQL i used the following extensions for table, view, stored proc and user defined functions:



tab viw prc udf





share|improve this answer
























  • The only thing that I can see that you’re adding to the accepted answer is that the user can specify multiple extensions, separated by spaces — and that was posted as a comment to the accepted answer nearly nine years ago.

    – Scott
    Feb 18 at 0:56











  • @Scott Obviously, the multiple extension was the answer i was looking for that was not provided by the answer. I even indicated it in my first sentence. And the separator which is space is not even common parlance which is normally comma or semicolon. Either way i had to dig in further just to extract the answer. The box is also misleading because it is SMALL looking as if it can only support 1 extension. If you don't appreciate this kind of input, then whatever.

    – Earl
    Feb 18 at 6:10













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f151597%2fhow-can-i-tell-notepad-to-always-use-a-particular-language-with-a-particular-f%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









119














All you have to do is tell Notepad++ that "xul" files are actually "XML" files.




  1. Go to Settings > Style Configurator

  2. Under Language, scroll down and highlight "XML"

  3. At the bottom, under User ext. type in "xul"

  4. Press Save & Close

  5. Open your file and it should now highlight properly.


Some other helpful links:




  • Assigning custom extensions to a language’s syntax highlighting in Notepad++

  • Associating file extensions with highlighters






share|improve this answer





















  • 17





    And if you want to add more than one (for example, I'm also adding 'rdf' -- yup, I'm doing Firefox extension development) then just separate them with spaces.

    – MatrixFrog
    Jun 11 '10 at 22:21






  • 1





    I'm saving it and it works for the session but it doesn't persist. When I restart Notepad++, it's not there anymore.

    – strider
    Mar 27 '14 at 15:31






  • 4





    Run it as Administrator and it persists.

    – strider
    Mar 27 '14 at 15:37






  • 1





    Note that for user-defined languages, the same can be done from the language configuration window in Language > Define your language... > user language : <your language> in the Ext. field.

    – yco
    Apr 20 '16 at 9:54











  • Awsome! +1 for you!

    – Ivijan Stefan Stipić
    Nov 11 '16 at 17:55
















119














All you have to do is tell Notepad++ that "xul" files are actually "XML" files.




  1. Go to Settings > Style Configurator

  2. Under Language, scroll down and highlight "XML"

  3. At the bottom, under User ext. type in "xul"

  4. Press Save & Close

  5. Open your file and it should now highlight properly.


Some other helpful links:




  • Assigning custom extensions to a language’s syntax highlighting in Notepad++

  • Associating file extensions with highlighters






share|improve this answer





















  • 17





    And if you want to add more than one (for example, I'm also adding 'rdf' -- yup, I'm doing Firefox extension development) then just separate them with spaces.

    – MatrixFrog
    Jun 11 '10 at 22:21






  • 1





    I'm saving it and it works for the session but it doesn't persist. When I restart Notepad++, it's not there anymore.

    – strider
    Mar 27 '14 at 15:31






  • 4





    Run it as Administrator and it persists.

    – strider
    Mar 27 '14 at 15:37






  • 1





    Note that for user-defined languages, the same can be done from the language configuration window in Language > Define your language... > user language : <your language> in the Ext. field.

    – yco
    Apr 20 '16 at 9:54











  • Awsome! +1 for you!

    – Ivijan Stefan Stipić
    Nov 11 '16 at 17:55














119












119








119







All you have to do is tell Notepad++ that "xul" files are actually "XML" files.




  1. Go to Settings > Style Configurator

  2. Under Language, scroll down and highlight "XML"

  3. At the bottom, under User ext. type in "xul"

  4. Press Save & Close

  5. Open your file and it should now highlight properly.


Some other helpful links:




  • Assigning custom extensions to a language’s syntax highlighting in Notepad++

  • Associating file extensions with highlighters






share|improve this answer















All you have to do is tell Notepad++ that "xul" files are actually "XML" files.




  1. Go to Settings > Style Configurator

  2. Under Language, scroll down and highlight "XML"

  3. At the bottom, under User ext. type in "xul"

  4. Press Save & Close

  5. Open your file and it should now highlight properly.


Some other helpful links:




  • Assigning custom extensions to a language’s syntax highlighting in Notepad++

  • Associating file extensions with highlighters







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 20 '17 at 10:17









Community

1




1










answered Jun 11 '10 at 22:12









DoltknuckleDoltknuckle

5,44542027




5,44542027








  • 17





    And if you want to add more than one (for example, I'm also adding 'rdf' -- yup, I'm doing Firefox extension development) then just separate them with spaces.

    – MatrixFrog
    Jun 11 '10 at 22:21






  • 1





    I'm saving it and it works for the session but it doesn't persist. When I restart Notepad++, it's not there anymore.

    – strider
    Mar 27 '14 at 15:31






  • 4





    Run it as Administrator and it persists.

    – strider
    Mar 27 '14 at 15:37






  • 1





    Note that for user-defined languages, the same can be done from the language configuration window in Language > Define your language... > user language : <your language> in the Ext. field.

    – yco
    Apr 20 '16 at 9:54











  • Awsome! +1 for you!

    – Ivijan Stefan Stipić
    Nov 11 '16 at 17:55














  • 17





    And if you want to add more than one (for example, I'm also adding 'rdf' -- yup, I'm doing Firefox extension development) then just separate them with spaces.

    – MatrixFrog
    Jun 11 '10 at 22:21






  • 1





    I'm saving it and it works for the session but it doesn't persist. When I restart Notepad++, it's not there anymore.

    – strider
    Mar 27 '14 at 15:31






  • 4





    Run it as Administrator and it persists.

    – strider
    Mar 27 '14 at 15:37






  • 1





    Note that for user-defined languages, the same can be done from the language configuration window in Language > Define your language... > user language : <your language> in the Ext. field.

    – yco
    Apr 20 '16 at 9:54











  • Awsome! +1 for you!

    – Ivijan Stefan Stipić
    Nov 11 '16 at 17:55








17




17





And if you want to add more than one (for example, I'm also adding 'rdf' -- yup, I'm doing Firefox extension development) then just separate them with spaces.

– MatrixFrog
Jun 11 '10 at 22:21





And if you want to add more than one (for example, I'm also adding 'rdf' -- yup, I'm doing Firefox extension development) then just separate them with spaces.

– MatrixFrog
Jun 11 '10 at 22:21




1




1





I'm saving it and it works for the session but it doesn't persist. When I restart Notepad++, it's not there anymore.

– strider
Mar 27 '14 at 15:31





I'm saving it and it works for the session but it doesn't persist. When I restart Notepad++, it's not there anymore.

– strider
Mar 27 '14 at 15:31




4




4





Run it as Administrator and it persists.

– strider
Mar 27 '14 at 15:37





Run it as Administrator and it persists.

– strider
Mar 27 '14 at 15:37




1




1





Note that for user-defined languages, the same can be done from the language configuration window in Language > Define your language... > user language : <your language> in the Ext. field.

– yco
Apr 20 '16 at 9:54





Note that for user-defined languages, the same can be done from the language configuration window in Language > Define your language... > user language : <your language> in the Ext. field.

– yco
Apr 20 '16 at 9:54













Awsome! +1 for you!

– Ivijan Stefan Stipić
Nov 11 '16 at 17:55





Awsome! +1 for you!

– Ivijan Stefan Stipić
Nov 11 '16 at 17:55













3














Here is the instructions for user defined languages. With pictures.



Select: Language --> Define Your Language:



Select: Language --> Define Your Language



Make sure you omit "." from extension in the Ext. box, or it wont work:



Make sure you omit "." from extension in the Ext. box, or it wont work.






share|improve this answer





















  • 1





    Please read the question again carefully. Your answer does not answer the original question. This is an answer to some other question.

    – DavidPostill
    Jan 29 '17 at 15:35











  • And yet it is very useful. Often when searching for a specific question you will find a more generic question. That's what happened to me. The first answer didn't solve my problem because I was looking for a slight variant of the issue (a user defined language). This answer helped me where the accepted one did not.

    – Scott Beeson
    Feb 21 at 14:29
















3














Here is the instructions for user defined languages. With pictures.



Select: Language --> Define Your Language:



Select: Language --> Define Your Language



Make sure you omit "." from extension in the Ext. box, or it wont work:



Make sure you omit "." from extension in the Ext. box, or it wont work.






share|improve this answer





















  • 1





    Please read the question again carefully. Your answer does not answer the original question. This is an answer to some other question.

    – DavidPostill
    Jan 29 '17 at 15:35











  • And yet it is very useful. Often when searching for a specific question you will find a more generic question. That's what happened to me. The first answer didn't solve my problem because I was looking for a slight variant of the issue (a user defined language). This answer helped me where the accepted one did not.

    – Scott Beeson
    Feb 21 at 14:29














3












3








3







Here is the instructions for user defined languages. With pictures.



Select: Language --> Define Your Language:



Select: Language --> Define Your Language



Make sure you omit "." from extension in the Ext. box, or it wont work:



Make sure you omit "." from extension in the Ext. box, or it wont work.






share|improve this answer















Here is the instructions for user defined languages. With pictures.



Select: Language --> Define Your Language:



Select: Language --> Define Your Language



Make sure you omit "." from extension in the Ext. box, or it wont work:



Make sure you omit "." from extension in the Ext. box, or it wont work.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 29 '17 at 2:24









fixer1234

19k144982




19k144982










answered Jan 28 '17 at 22:54









J MADISONJ MADISON

1594




1594








  • 1





    Please read the question again carefully. Your answer does not answer the original question. This is an answer to some other question.

    – DavidPostill
    Jan 29 '17 at 15:35











  • And yet it is very useful. Often when searching for a specific question you will find a more generic question. That's what happened to me. The first answer didn't solve my problem because I was looking for a slight variant of the issue (a user defined language). This answer helped me where the accepted one did not.

    – Scott Beeson
    Feb 21 at 14:29














  • 1





    Please read the question again carefully. Your answer does not answer the original question. This is an answer to some other question.

    – DavidPostill
    Jan 29 '17 at 15:35











  • And yet it is very useful. Often when searching for a specific question you will find a more generic question. That's what happened to me. The first answer didn't solve my problem because I was looking for a slight variant of the issue (a user defined language). This answer helped me where the accepted one did not.

    – Scott Beeson
    Feb 21 at 14:29








1




1





Please read the question again carefully. Your answer does not answer the original question. This is an answer to some other question.

– DavidPostill
Jan 29 '17 at 15:35





Please read the question again carefully. Your answer does not answer the original question. This is an answer to some other question.

– DavidPostill
Jan 29 '17 at 15:35













And yet it is very useful. Often when searching for a specific question you will find a more generic question. That's what happened to me. The first answer didn't solve my problem because I was looking for a slight variant of the issue (a user defined language). This answer helped me where the accepted one did not.

– Scott Beeson
Feb 21 at 14:29





And yet it is very useful. Often when searching for a specific question you will find a more generic question. That's what happened to me. The first answer didn't solve my problem because I was looking for a slight variant of the issue (a user defined language). This answer helped me where the accepted one did not.

– Scott Beeson
Feb 21 at 14:29











-1














Update for version 7.5+ and for multiple extensions



1) Settings > Style Configurator



2) look under "Languages:" , choose your target language.



3) look at textbox under "User ext. :"



Simple type the extension you wish to associate for that language. For multiple file extensions, it should be separated via SPACE. Do not use any "." period/dot characters.



EG. for SQL i used the following extensions for table, view, stored proc and user defined functions:



tab viw prc udf





share|improve this answer
























  • The only thing that I can see that you’re adding to the accepted answer is that the user can specify multiple extensions, separated by spaces — and that was posted as a comment to the accepted answer nearly nine years ago.

    – Scott
    Feb 18 at 0:56











  • @Scott Obviously, the multiple extension was the answer i was looking for that was not provided by the answer. I even indicated it in my first sentence. And the separator which is space is not even common parlance which is normally comma or semicolon. Either way i had to dig in further just to extract the answer. The box is also misleading because it is SMALL looking as if it can only support 1 extension. If you don't appreciate this kind of input, then whatever.

    – Earl
    Feb 18 at 6:10


















-1














Update for version 7.5+ and for multiple extensions



1) Settings > Style Configurator



2) look under "Languages:" , choose your target language.



3) look at textbox under "User ext. :"



Simple type the extension you wish to associate for that language. For multiple file extensions, it should be separated via SPACE. Do not use any "." period/dot characters.



EG. for SQL i used the following extensions for table, view, stored proc and user defined functions:



tab viw prc udf





share|improve this answer
























  • The only thing that I can see that you’re adding to the accepted answer is that the user can specify multiple extensions, separated by spaces — and that was posted as a comment to the accepted answer nearly nine years ago.

    – Scott
    Feb 18 at 0:56











  • @Scott Obviously, the multiple extension was the answer i was looking for that was not provided by the answer. I even indicated it in my first sentence. And the separator which is space is not even common parlance which is normally comma or semicolon. Either way i had to dig in further just to extract the answer. The box is also misleading because it is SMALL looking as if it can only support 1 extension. If you don't appreciate this kind of input, then whatever.

    – Earl
    Feb 18 at 6:10
















-1












-1








-1







Update for version 7.5+ and for multiple extensions



1) Settings > Style Configurator



2) look under "Languages:" , choose your target language.



3) look at textbox under "User ext. :"



Simple type the extension you wish to associate for that language. For multiple file extensions, it should be separated via SPACE. Do not use any "." period/dot characters.



EG. for SQL i used the following extensions for table, view, stored proc and user defined functions:



tab viw prc udf





share|improve this answer













Update for version 7.5+ and for multiple extensions



1) Settings > Style Configurator



2) look under "Languages:" , choose your target language.



3) look at textbox under "User ext. :"



Simple type the extension you wish to associate for that language. For multiple file extensions, it should be separated via SPACE. Do not use any "." period/dot characters.



EG. for SQL i used the following extensions for table, view, stored proc and user defined functions:



tab viw prc udf






share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 17 at 23:58









EarlEarl

11




11













  • The only thing that I can see that you’re adding to the accepted answer is that the user can specify multiple extensions, separated by spaces — and that was posted as a comment to the accepted answer nearly nine years ago.

    – Scott
    Feb 18 at 0:56











  • @Scott Obviously, the multiple extension was the answer i was looking for that was not provided by the answer. I even indicated it in my first sentence. And the separator which is space is not even common parlance which is normally comma or semicolon. Either way i had to dig in further just to extract the answer. The box is also misleading because it is SMALL looking as if it can only support 1 extension. If you don't appreciate this kind of input, then whatever.

    – Earl
    Feb 18 at 6:10





















  • The only thing that I can see that you’re adding to the accepted answer is that the user can specify multiple extensions, separated by spaces — and that was posted as a comment to the accepted answer nearly nine years ago.

    – Scott
    Feb 18 at 0:56











  • @Scott Obviously, the multiple extension was the answer i was looking for that was not provided by the answer. I even indicated it in my first sentence. And the separator which is space is not even common parlance which is normally comma or semicolon. Either way i had to dig in further just to extract the answer. The box is also misleading because it is SMALL looking as if it can only support 1 extension. If you don't appreciate this kind of input, then whatever.

    – Earl
    Feb 18 at 6:10



















The only thing that I can see that you’re adding to the accepted answer is that the user can specify multiple extensions, separated by spaces — and that was posted as a comment to the accepted answer nearly nine years ago.

– Scott
Feb 18 at 0:56





The only thing that I can see that you’re adding to the accepted answer is that the user can specify multiple extensions, separated by spaces — and that was posted as a comment to the accepted answer nearly nine years ago.

– Scott
Feb 18 at 0:56













@Scott Obviously, the multiple extension was the answer i was looking for that was not provided by the answer. I even indicated it in my first sentence. And the separator which is space is not even common parlance which is normally comma or semicolon. Either way i had to dig in further just to extract the answer. The box is also misleading because it is SMALL looking as if it can only support 1 extension. If you don't appreciate this kind of input, then whatever.

– Earl
Feb 18 at 6:10







@Scott Obviously, the multiple extension was the answer i was looking for that was not provided by the answer. I even indicated it in my first sentence. And the separator which is space is not even common parlance which is normally comma or semicolon. Either way i had to dig in further just to extract the answer. The box is also misleading because it is SMALL looking as if it can only support 1 extension. If you don't appreciate this kind of input, then whatever.

– Earl
Feb 18 at 6:10




















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f151597%2fhow-can-i-tell-notepad-to-always-use-a-particular-language-with-a-particular-f%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Probability when a professor distributes a quiz and homework assignment to a class of n students.

Aardman Animations

Are they similar matrix