Possible at all VScode ? option or extenstion to manually color markup words (non syntax)?











up vote
1
down vote

favorite












Abit of a longshot as this is more like a paint program or word/excel stuff and not really related to a programming language/struct syntax.



But is it possible at all to make either VScode do it or an extension to do it so i would be able to mark blocks of text and give them different background colors ?



Reason why i would like it is that i often have the need to be able to specify explanations etc where blocks of color would be a huge help for clarity.



If anyone have any ideas on how this could be done it would be awesome



enter image description here










share|improve this question


























    up vote
    1
    down vote

    favorite












    Abit of a longshot as this is more like a paint program or word/excel stuff and not really related to a programming language/struct syntax.



    But is it possible at all to make either VScode do it or an extension to do it so i would be able to mark blocks of text and give them different background colors ?



    Reason why i would like it is that i often have the need to be able to specify explanations etc where blocks of color would be a huge help for clarity.



    If anyone have any ideas on how this could be done it would be awesome



    enter image description here










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Abit of a longshot as this is more like a paint program or word/excel stuff and not really related to a programming language/struct syntax.



      But is it possible at all to make either VScode do it or an extension to do it so i would be able to mark blocks of text and give them different background colors ?



      Reason why i would like it is that i often have the need to be able to specify explanations etc where blocks of color would be a huge help for clarity.



      If anyone have any ideas on how this could be done it would be awesome



      enter image description here










      share|improve this question













      Abit of a longshot as this is more like a paint program or word/excel stuff and not really related to a programming language/struct syntax.



      But is it possible at all to make either VScode do it or an extension to do it so i would be able to mark blocks of text and give them different background colors ?



      Reason why i would like it is that i often have the need to be able to specify explanations etc where blocks of color would be a huge help for clarity.



      If anyone have any ideas on how this could be done it would be awesome



      enter image description here







      visual-studio-code






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 7 at 6:58









      MdTp

      576




      576
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          This extension: Highlight. Can be scoped to language (plaintext here .txt):



          "highlight.regexes": {
          "(@note)(.+)": {
          "filterLanguageRegex": "plaintext",
          "decorations": [
          {
          "backgroundColor": "#a37acc",
          "color": "#fff"
          },
          {
          "backgroundColor": "#bd9fda",
          }
          ]
          },
          "(@important)(.+)": {
          "filterLanguageRegex": "plaintext",
          "decorations": [
          {
          "backgroundColor": "#ff3333",
          "color": "#fff"
          },
          {
          "backgroundColor": "#F07171"
          },


          ]
          },
          },


          You probably don't want to use plain words highlighting. Use something with a special sign before/after, like @.



          @note useful to know
          @important everything on fire


          enter image description here






          share|improve this answer





















          • that would be an approach i could use - thanks alot !
            – MdTp
            Nov 8 at 18:06











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          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',
          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%2fstackoverflow.com%2fquestions%2f53184797%2fpossible-at-all-vscode-option-or-extenstion-to-manually-color-markup-words-no%23new-answer', 'question_page');
          }
          );

          Post as a guest
































          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          This extension: Highlight. Can be scoped to language (plaintext here .txt):



          "highlight.regexes": {
          "(@note)(.+)": {
          "filterLanguageRegex": "plaintext",
          "decorations": [
          {
          "backgroundColor": "#a37acc",
          "color": "#fff"
          },
          {
          "backgroundColor": "#bd9fda",
          }
          ]
          },
          "(@important)(.+)": {
          "filterLanguageRegex": "plaintext",
          "decorations": [
          {
          "backgroundColor": "#ff3333",
          "color": "#fff"
          },
          {
          "backgroundColor": "#F07171"
          },


          ]
          },
          },


          You probably don't want to use plain words highlighting. Use something with a special sign before/after, like @.



          @note useful to know
          @important everything on fire


          enter image description here






          share|improve this answer





















          • that would be an approach i could use - thanks alot !
            – MdTp
            Nov 8 at 18:06















          up vote
          1
          down vote



          accepted










          This extension: Highlight. Can be scoped to language (plaintext here .txt):



          "highlight.regexes": {
          "(@note)(.+)": {
          "filterLanguageRegex": "plaintext",
          "decorations": [
          {
          "backgroundColor": "#a37acc",
          "color": "#fff"
          },
          {
          "backgroundColor": "#bd9fda",
          }
          ]
          },
          "(@important)(.+)": {
          "filterLanguageRegex": "plaintext",
          "decorations": [
          {
          "backgroundColor": "#ff3333",
          "color": "#fff"
          },
          {
          "backgroundColor": "#F07171"
          },


          ]
          },
          },


          You probably don't want to use plain words highlighting. Use something with a special sign before/after, like @.



          @note useful to know
          @important everything on fire


          enter image description here






          share|improve this answer





















          • that would be an approach i could use - thanks alot !
            – MdTp
            Nov 8 at 18:06













          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          This extension: Highlight. Can be scoped to language (plaintext here .txt):



          "highlight.regexes": {
          "(@note)(.+)": {
          "filterLanguageRegex": "plaintext",
          "decorations": [
          {
          "backgroundColor": "#a37acc",
          "color": "#fff"
          },
          {
          "backgroundColor": "#bd9fda",
          }
          ]
          },
          "(@important)(.+)": {
          "filterLanguageRegex": "plaintext",
          "decorations": [
          {
          "backgroundColor": "#ff3333",
          "color": "#fff"
          },
          {
          "backgroundColor": "#F07171"
          },


          ]
          },
          },


          You probably don't want to use plain words highlighting. Use something with a special sign before/after, like @.



          @note useful to know
          @important everything on fire


          enter image description here






          share|improve this answer












          This extension: Highlight. Can be scoped to language (plaintext here .txt):



          "highlight.regexes": {
          "(@note)(.+)": {
          "filterLanguageRegex": "plaintext",
          "decorations": [
          {
          "backgroundColor": "#a37acc",
          "color": "#fff"
          },
          {
          "backgroundColor": "#bd9fda",
          }
          ]
          },
          "(@important)(.+)": {
          "filterLanguageRegex": "plaintext",
          "decorations": [
          {
          "backgroundColor": "#ff3333",
          "color": "#fff"
          },
          {
          "backgroundColor": "#F07171"
          },


          ]
          },
          },


          You probably don't want to use plain words highlighting. Use something with a special sign before/after, like @.



          @note useful to know
          @important everything on fire


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 8 at 15:05









          Alex

          8,89723552




          8,89723552












          • that would be an approach i could use - thanks alot !
            – MdTp
            Nov 8 at 18:06


















          • that would be an approach i could use - thanks alot !
            – MdTp
            Nov 8 at 18:06
















          that would be an approach i could use - thanks alot !
          – MdTp
          Nov 8 at 18:06




          that would be an approach i could use - thanks alot !
          – MdTp
          Nov 8 at 18:06


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53184797%2fpossible-at-all-vscode-option-or-extenstion-to-manually-color-markup-words-no%23new-answer', 'question_page');
          }
          );

          Post as a guest




















































































          這個網誌中的熱門文章

          Tangent Lines Diagram Along Smooth Curve

          Yusuf al-Mu'taman ibn Hud

          Zucchini