Attempting to distinguish read-only vs non in Custom Document Well with Reg. Ex










0















Custom Document Well with Productivity Power Tools for Visual Studio 2017 comes with the ability to change the color of tabs according to Project and/or something they call Reg. Ex.



To my understanding this is just ordinary regular expression but out of the box they have a tag, or something, they call [read only]. Something I can't find any documentation about anywhere, or anyone attempting to do anything with? One of the default Reg. Ex.'s look like this:



.*.(cpp|c|hpp|h)[ ]*([read only])?$



I thought that meant that there is some functionality for checking if the actual file is read only or not, but I can't for my life figure out how to do that, this is what I've tried so far:



.*.(cpp|c|)



.*.(h|hpp)[ ]*([])?$



.*.(h|hpp)[ ]*([writable])?$



But the Read Only always seem to take precedence.



What I want to achieve is have different colors on my tabs depending on the read only state of the file, and I only want this because I saw the read-only flag in the reg-ex.










share|improve this question

















  • 1





    would this help? https://stackoverflow.com/questions/40042433/visual-studio-productivity-power-tools-regex-folder-name-color-coding

    – Matt.G
    Nov 14 '18 at 13:21











  • What are you trying to do? If the default regex is executed first and it matches, your patterns won't be even tried.

    – Wiktor Stribiżew
    Nov 14 '18 at 14:16











  • The thing is it shouldn't match since the file isn't read-only. I just assumed that the Document Well had some extended functionality of RegEx where you have this read-only state available. And for your second question: "What I want to achieve is have different colors on my tabs depending on the read only state of the file"

    – Alex
    Nov 15 '18 at 8:29















0















Custom Document Well with Productivity Power Tools for Visual Studio 2017 comes with the ability to change the color of tabs according to Project and/or something they call Reg. Ex.



To my understanding this is just ordinary regular expression but out of the box they have a tag, or something, they call [read only]. Something I can't find any documentation about anywhere, or anyone attempting to do anything with? One of the default Reg. Ex.'s look like this:



.*.(cpp|c|hpp|h)[ ]*([read only])?$



I thought that meant that there is some functionality for checking if the actual file is read only or not, but I can't for my life figure out how to do that, this is what I've tried so far:



.*.(cpp|c|)



.*.(h|hpp)[ ]*([])?$



.*.(h|hpp)[ ]*([writable])?$



But the Read Only always seem to take precedence.



What I want to achieve is have different colors on my tabs depending on the read only state of the file, and I only want this because I saw the read-only flag in the reg-ex.










share|improve this question

















  • 1





    would this help? https://stackoverflow.com/questions/40042433/visual-studio-productivity-power-tools-regex-folder-name-color-coding

    – Matt.G
    Nov 14 '18 at 13:21











  • What are you trying to do? If the default regex is executed first and it matches, your patterns won't be even tried.

    – Wiktor Stribiżew
    Nov 14 '18 at 14:16











  • The thing is it shouldn't match since the file isn't read-only. I just assumed that the Document Well had some extended functionality of RegEx where you have this read-only state available. And for your second question: "What I want to achieve is have different colors on my tabs depending on the read only state of the file"

    – Alex
    Nov 15 '18 at 8:29













0












0








0








Custom Document Well with Productivity Power Tools for Visual Studio 2017 comes with the ability to change the color of tabs according to Project and/or something they call Reg. Ex.



To my understanding this is just ordinary regular expression but out of the box they have a tag, or something, they call [read only]. Something I can't find any documentation about anywhere, or anyone attempting to do anything with? One of the default Reg. Ex.'s look like this:



.*.(cpp|c|hpp|h)[ ]*([read only])?$



I thought that meant that there is some functionality for checking if the actual file is read only or not, but I can't for my life figure out how to do that, this is what I've tried so far:



.*.(cpp|c|)



.*.(h|hpp)[ ]*([])?$



.*.(h|hpp)[ ]*([writable])?$



But the Read Only always seem to take precedence.



What I want to achieve is have different colors on my tabs depending on the read only state of the file, and I only want this because I saw the read-only flag in the reg-ex.










share|improve this question














Custom Document Well with Productivity Power Tools for Visual Studio 2017 comes with the ability to change the color of tabs according to Project and/or something they call Reg. Ex.



To my understanding this is just ordinary regular expression but out of the box they have a tag, or something, they call [read only]. Something I can't find any documentation about anywhere, or anyone attempting to do anything with? One of the default Reg. Ex.'s look like this:



.*.(cpp|c|hpp|h)[ ]*([read only])?$



I thought that meant that there is some functionality for checking if the actual file is read only or not, but I can't for my life figure out how to do that, this is what I've tried so far:



.*.(cpp|c|)



.*.(h|hpp)[ ]*([])?$



.*.(h|hpp)[ ]*([writable])?$



But the Read Only always seem to take precedence.



What I want to achieve is have different colors on my tabs depending on the read only state of the file, and I only want this because I saw the read-only flag in the reg-ex.







regex visual-studio productivity-power-tools






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 14 '18 at 13:16









AlexAlex

128110




128110







  • 1





    would this help? https://stackoverflow.com/questions/40042433/visual-studio-productivity-power-tools-regex-folder-name-color-coding

    – Matt.G
    Nov 14 '18 at 13:21











  • What are you trying to do? If the default regex is executed first and it matches, your patterns won't be even tried.

    – Wiktor Stribiżew
    Nov 14 '18 at 14:16











  • The thing is it shouldn't match since the file isn't read-only. I just assumed that the Document Well had some extended functionality of RegEx where you have this read-only state available. And for your second question: "What I want to achieve is have different colors on my tabs depending on the read only state of the file"

    – Alex
    Nov 15 '18 at 8:29












  • 1





    would this help? https://stackoverflow.com/questions/40042433/visual-studio-productivity-power-tools-regex-folder-name-color-coding

    – Matt.G
    Nov 14 '18 at 13:21











  • What are you trying to do? If the default regex is executed first and it matches, your patterns won't be even tried.

    – Wiktor Stribiżew
    Nov 14 '18 at 14:16











  • The thing is it shouldn't match since the file isn't read-only. I just assumed that the Document Well had some extended functionality of RegEx where you have this read-only state available. And for your second question: "What I want to achieve is have different colors on my tabs depending on the read only state of the file"

    – Alex
    Nov 15 '18 at 8:29







1




1





would this help? https://stackoverflow.com/questions/40042433/visual-studio-productivity-power-tools-regex-folder-name-color-coding

– Matt.G
Nov 14 '18 at 13:21





would this help? https://stackoverflow.com/questions/40042433/visual-studio-productivity-power-tools-regex-folder-name-color-coding

– Matt.G
Nov 14 '18 at 13:21













What are you trying to do? If the default regex is executed first and it matches, your patterns won't be even tried.

– Wiktor Stribiżew
Nov 14 '18 at 14:16





What are you trying to do? If the default regex is executed first and it matches, your patterns won't be even tried.

– Wiktor Stribiżew
Nov 14 '18 at 14:16













The thing is it shouldn't match since the file isn't read-only. I just assumed that the Document Well had some extended functionality of RegEx where you have this read-only state available. And for your second question: "What I want to achieve is have different colors on my tabs depending on the read only state of the file"

– Alex
Nov 15 '18 at 8:29





The thing is it shouldn't match since the file isn't read-only. I just assumed that the Document Well had some extended functionality of RegEx where you have this read-only state available. And for your second question: "What I want to achieve is have different colors on my tabs depending on the read only state of the file"

– Alex
Nov 15 '18 at 8:29












0






active

oldest

votes











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',
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%2fstackoverflow.com%2fquestions%2f53301143%2fattempting-to-distinguish-read-only-vs-non-in-custom-document-well-with-reg-ex%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • 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%2fstackoverflow.com%2fquestions%2f53301143%2fattempting-to-distinguish-read-only-vs-non-in-custom-document-well-with-reg-ex%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







這個網誌中的熱門文章

Barbados

How to read a connectionString WITH PROVIDER in .NET Core?

Node.js Script on GitHub Pages or Amazon S3