Plaintext Syntax Highlighting and/or Custom Highlighting Syntax





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















How can you add custom syntax highlighting for a plaintext file? (for any filetype, not just txt)



I leave this question open to any editor for those who know - I'm not picky.
If you want me to be specific, assume Sublime Text 2 or 3.
(I write a lot of things in Sublime Text, I use many IDEs regularly, I used to use Notepad++.)



Sometimes I want to be able to write up notes in a file, but it would be helpful to have my own custom syntax highlighting for plaintext notes.



Is there a way to do this?



I would also consider an alternative file extension as a valid answer
(like .yml)



What I'm looking for is a way to color "*", ">", "-", digits, etc. in a plaintext file (of any file type).



There are many ways to state this question, and I'm not finding anybody asking it.



Thanks!



EDIT:



I realize that a solution would be to have access to the Sublime Text files that define the syntax highlighting grammars. Does anyone know where those would be, so that I could examine them and make my own? (Your own grammar is not for the lay person, I know)










share|improve this question

























  • See Notepad++ : Custom Syntax Highlighting for .txt files, Notepad++ Custom Language Highlighting ...

    – Karan
    Apr 23 '15 at 20:37











  • That's easy copy paste, and I found those. They're saying "no-NP++ can't" in the answers, which as a dev, I am aware of. Sublime has some ability to configure it's large language support. I'm essentially wondering if I can access the files that define the grammar for each syntax and make my own.

    – Plasmarob
    Apr 23 '15 at 20:42











  • The accepted answer in the second link leads here, which shows you how to set up a custom syntax highlighting scheme. Also the Language menu allows you to create a user-defined language and apply its highlighting rules to any file including text files. So how is that equivalent to "no NP++ can't"?

    – Karan
    Apr 23 '15 at 20:51













  • See top answer in the first link. Why is there no currently existing (non-archived) copy of that document if the process is still supported in Notepad++? Or is it no longer supported? (I'm going to have to look this up further when I have time) I'm looking to add a grammar to a set, not reinvent the wheel.

    – Plasmarob
    Apr 23 '15 at 20:57






  • 1





    Wiki page may have been deleted for a variety of reasons, or moved elsewhere. Doesn't mean feature's gone. NP++ > Language menu > Define your language shows this.

    – Karan
    Apr 23 '15 at 21:04




















0















How can you add custom syntax highlighting for a plaintext file? (for any filetype, not just txt)



I leave this question open to any editor for those who know - I'm not picky.
If you want me to be specific, assume Sublime Text 2 or 3.
(I write a lot of things in Sublime Text, I use many IDEs regularly, I used to use Notepad++.)



Sometimes I want to be able to write up notes in a file, but it would be helpful to have my own custom syntax highlighting for plaintext notes.



Is there a way to do this?



I would also consider an alternative file extension as a valid answer
(like .yml)



What I'm looking for is a way to color "*", ">", "-", digits, etc. in a plaintext file (of any file type).



There are many ways to state this question, and I'm not finding anybody asking it.



Thanks!



EDIT:



I realize that a solution would be to have access to the Sublime Text files that define the syntax highlighting grammars. Does anyone know where those would be, so that I could examine them and make my own? (Your own grammar is not for the lay person, I know)










share|improve this question

























  • See Notepad++ : Custom Syntax Highlighting for .txt files, Notepad++ Custom Language Highlighting ...

    – Karan
    Apr 23 '15 at 20:37











  • That's easy copy paste, and I found those. They're saying "no-NP++ can't" in the answers, which as a dev, I am aware of. Sublime has some ability to configure it's large language support. I'm essentially wondering if I can access the files that define the grammar for each syntax and make my own.

    – Plasmarob
    Apr 23 '15 at 20:42











  • The accepted answer in the second link leads here, which shows you how to set up a custom syntax highlighting scheme. Also the Language menu allows you to create a user-defined language and apply its highlighting rules to any file including text files. So how is that equivalent to "no NP++ can't"?

    – Karan
    Apr 23 '15 at 20:51













  • See top answer in the first link. Why is there no currently existing (non-archived) copy of that document if the process is still supported in Notepad++? Or is it no longer supported? (I'm going to have to look this up further when I have time) I'm looking to add a grammar to a set, not reinvent the wheel.

    – Plasmarob
    Apr 23 '15 at 20:57






  • 1





    Wiki page may have been deleted for a variety of reasons, or moved elsewhere. Doesn't mean feature's gone. NP++ > Language menu > Define your language shows this.

    – Karan
    Apr 23 '15 at 21:04
















0












0








0








How can you add custom syntax highlighting for a plaintext file? (for any filetype, not just txt)



I leave this question open to any editor for those who know - I'm not picky.
If you want me to be specific, assume Sublime Text 2 or 3.
(I write a lot of things in Sublime Text, I use many IDEs regularly, I used to use Notepad++.)



Sometimes I want to be able to write up notes in a file, but it would be helpful to have my own custom syntax highlighting for plaintext notes.



Is there a way to do this?



I would also consider an alternative file extension as a valid answer
(like .yml)



What I'm looking for is a way to color "*", ">", "-", digits, etc. in a plaintext file (of any file type).



There are many ways to state this question, and I'm not finding anybody asking it.



Thanks!



EDIT:



I realize that a solution would be to have access to the Sublime Text files that define the syntax highlighting grammars. Does anyone know where those would be, so that I could examine them and make my own? (Your own grammar is not for the lay person, I know)










share|improve this question
















How can you add custom syntax highlighting for a plaintext file? (for any filetype, not just txt)



I leave this question open to any editor for those who know - I'm not picky.
If you want me to be specific, assume Sublime Text 2 or 3.
(I write a lot of things in Sublime Text, I use many IDEs regularly, I used to use Notepad++.)



Sometimes I want to be able to write up notes in a file, but it would be helpful to have my own custom syntax highlighting for plaintext notes.



Is there a way to do this?



I would also consider an alternative file extension as a valid answer
(like .yml)



What I'm looking for is a way to color "*", ">", "-", digits, etc. in a plaintext file (of any file type).



There are many ways to state this question, and I'm not finding anybody asking it.



Thanks!



EDIT:



I realize that a solution would be to have access to the Sublime Text files that define the syntax highlighting grammars. Does anyone know where those would be, so that I could examine them and make my own? (Your own grammar is not for the lay person, I know)







text-editors syntax-highlighting sublime-text-3 plaintext






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 23 '15 at 21:07







Plasmarob

















asked Apr 23 '15 at 20:17









PlasmarobPlasmarob

11614




11614













  • See Notepad++ : Custom Syntax Highlighting for .txt files, Notepad++ Custom Language Highlighting ...

    – Karan
    Apr 23 '15 at 20:37











  • That's easy copy paste, and I found those. They're saying "no-NP++ can't" in the answers, which as a dev, I am aware of. Sublime has some ability to configure it's large language support. I'm essentially wondering if I can access the files that define the grammar for each syntax and make my own.

    – Plasmarob
    Apr 23 '15 at 20:42











  • The accepted answer in the second link leads here, which shows you how to set up a custom syntax highlighting scheme. Also the Language menu allows you to create a user-defined language and apply its highlighting rules to any file including text files. So how is that equivalent to "no NP++ can't"?

    – Karan
    Apr 23 '15 at 20:51













  • See top answer in the first link. Why is there no currently existing (non-archived) copy of that document if the process is still supported in Notepad++? Or is it no longer supported? (I'm going to have to look this up further when I have time) I'm looking to add a grammar to a set, not reinvent the wheel.

    – Plasmarob
    Apr 23 '15 at 20:57






  • 1





    Wiki page may have been deleted for a variety of reasons, or moved elsewhere. Doesn't mean feature's gone. NP++ > Language menu > Define your language shows this.

    – Karan
    Apr 23 '15 at 21:04





















  • See Notepad++ : Custom Syntax Highlighting for .txt files, Notepad++ Custom Language Highlighting ...

    – Karan
    Apr 23 '15 at 20:37











  • That's easy copy paste, and I found those. They're saying "no-NP++ can't" in the answers, which as a dev, I am aware of. Sublime has some ability to configure it's large language support. I'm essentially wondering if I can access the files that define the grammar for each syntax and make my own.

    – Plasmarob
    Apr 23 '15 at 20:42











  • The accepted answer in the second link leads here, which shows you how to set up a custom syntax highlighting scheme. Also the Language menu allows you to create a user-defined language and apply its highlighting rules to any file including text files. So how is that equivalent to "no NP++ can't"?

    – Karan
    Apr 23 '15 at 20:51













  • See top answer in the first link. Why is there no currently existing (non-archived) copy of that document if the process is still supported in Notepad++? Or is it no longer supported? (I'm going to have to look this up further when I have time) I'm looking to add a grammar to a set, not reinvent the wheel.

    – Plasmarob
    Apr 23 '15 at 20:57






  • 1





    Wiki page may have been deleted for a variety of reasons, or moved elsewhere. Doesn't mean feature's gone. NP++ > Language menu > Define your language shows this.

    – Karan
    Apr 23 '15 at 21:04



















See Notepad++ : Custom Syntax Highlighting for .txt files, Notepad++ Custom Language Highlighting ...

– Karan
Apr 23 '15 at 20:37





See Notepad++ : Custom Syntax Highlighting for .txt files, Notepad++ Custom Language Highlighting ...

– Karan
Apr 23 '15 at 20:37













That's easy copy paste, and I found those. They're saying "no-NP++ can't" in the answers, which as a dev, I am aware of. Sublime has some ability to configure it's large language support. I'm essentially wondering if I can access the files that define the grammar for each syntax and make my own.

– Plasmarob
Apr 23 '15 at 20:42





That's easy copy paste, and I found those. They're saying "no-NP++ can't" in the answers, which as a dev, I am aware of. Sublime has some ability to configure it's large language support. I'm essentially wondering if I can access the files that define the grammar for each syntax and make my own.

– Plasmarob
Apr 23 '15 at 20:42













The accepted answer in the second link leads here, which shows you how to set up a custom syntax highlighting scheme. Also the Language menu allows you to create a user-defined language and apply its highlighting rules to any file including text files. So how is that equivalent to "no NP++ can't"?

– Karan
Apr 23 '15 at 20:51







The accepted answer in the second link leads here, which shows you how to set up a custom syntax highlighting scheme. Also the Language menu allows you to create a user-defined language and apply its highlighting rules to any file including text files. So how is that equivalent to "no NP++ can't"?

– Karan
Apr 23 '15 at 20:51















See top answer in the first link. Why is there no currently existing (non-archived) copy of that document if the process is still supported in Notepad++? Or is it no longer supported? (I'm going to have to look this up further when I have time) I'm looking to add a grammar to a set, not reinvent the wheel.

– Plasmarob
Apr 23 '15 at 20:57





See top answer in the first link. Why is there no currently existing (non-archived) copy of that document if the process is still supported in Notepad++? Or is it no longer supported? (I'm going to have to look this up further when I have time) I'm looking to add a grammar to a set, not reinvent the wheel.

– Plasmarob
Apr 23 '15 at 20:57




1




1





Wiki page may have been deleted for a variety of reasons, or moved elsewhere. Doesn't mean feature's gone. NP++ > Language menu > Define your language shows this.

– Karan
Apr 23 '15 at 21:04







Wiki page may have been deleted for a variety of reasons, or moved elsewhere. Doesn't mean feature's gone. NP++ > Language menu > Define your language shows this.

– Karan
Apr 23 '15 at 21:04












1 Answer
1






active

oldest

votes


















0














I think this might be the answer to my question:



http://docs.sublimetext.info/en/latest/reference/syntaxdefs.html?highlight=syntax



However, it's not completely transparent how you would add a new one.



A good answer is here:



https://stackoverflow.com/questions/15646926/sublime-text-how-to-customize-syntax-highlighting



The answer is .tmTheme files as per this topic.






share|improve this answer


























    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%2f905374%2fplaintext-syntax-highlighting-and-or-custom-highlighting-syntax%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I think this might be the answer to my question:



    http://docs.sublimetext.info/en/latest/reference/syntaxdefs.html?highlight=syntax



    However, it's not completely transparent how you would add a new one.



    A good answer is here:



    https://stackoverflow.com/questions/15646926/sublime-text-how-to-customize-syntax-highlighting



    The answer is .tmTheme files as per this topic.






    share|improve this answer






























      0














      I think this might be the answer to my question:



      http://docs.sublimetext.info/en/latest/reference/syntaxdefs.html?highlight=syntax



      However, it's not completely transparent how you would add a new one.



      A good answer is here:



      https://stackoverflow.com/questions/15646926/sublime-text-how-to-customize-syntax-highlighting



      The answer is .tmTheme files as per this topic.






      share|improve this answer




























        0












        0








        0







        I think this might be the answer to my question:



        http://docs.sublimetext.info/en/latest/reference/syntaxdefs.html?highlight=syntax



        However, it's not completely transparent how you would add a new one.



        A good answer is here:



        https://stackoverflow.com/questions/15646926/sublime-text-how-to-customize-syntax-highlighting



        The answer is .tmTheme files as per this topic.






        share|improve this answer















        I think this might be the answer to my question:



        http://docs.sublimetext.info/en/latest/reference/syntaxdefs.html?highlight=syntax



        However, it's not completely transparent how you would add a new one.



        A good answer is here:



        https://stackoverflow.com/questions/15646926/sublime-text-how-to-customize-syntax-highlighting



        The answer is .tmTheme files as per this topic.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited May 23 '17 at 12:41









        Community

        1




        1










        answered Apr 23 '15 at 20:47









        PlasmarobPlasmarob

        11614




        11614






























            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%2f905374%2fplaintext-syntax-highlighting-and-or-custom-highlighting-syntax%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

            Список кардиналов, возведённых папой римским Каликстом III

            Deduzione

            Mysql.sock missing - “Can't connect to local MySQL server through socket”