User forums > Using Code::Blocks

syntax-highlighting on write-protected sourcefiles fail

<< < (4/4)

takeshimiya:

--- Quote from: sethjackson on May 24, 2006, 01:58:31 pm ---
--- Quote from: ProutDeMammouth on May 24, 2006, 01:53:57 pm ---
--- Quote from: mandrav on May 24, 2006, 10:02:11 am ---Well, I suggest someone should start a poll about this issue. Then we can go with what the community decides...

--- End quote ---
or just add an option somewhere.

--- End quote ---

That is an even better idea. :D

--- End quote ---

No I don't think so. It's better to find a better default (decided by the community as Yiannis said) rather than start cluttering with options.

I vote for a wxBeep (sound) when the user tries to write,
maybe even a MessageBox "This file is read only.",
and a "Read only" in the status bar in red/brown colour.

ProutDeMammouth:
I just checked the "Syntax highlighting" dialog box. Currently, we have the choice for the "Background" only. A new button for "Write-protected Backgrnd" below would be the solution.

takeshimiya:

--- Quote from: ProutDeMammouth on May 24, 2006, 02:08:31 pm ---I just checked the "Syntax highlighting" dialog box. Currently, we have the choice for the "Background" only. A new button for "Write-protected Backgrnd" below would be the solution.

--- End quote ---

That doesn't solves the problem, because the users that are using those version control systems would be setting to "white" that background, thus solving the "annoying to read" part, but with a new problem: it will not be clear if it's read-only.

mandrav:

--- Quote from: ProutDeMammouth on May 24, 2006, 01:53:57 pm ---
--- Quote from: mandrav on May 24, 2006, 10:02:11 am ---Well, I suggest someone should start a poll about this issue. Then we can go with what the community decides...

--- End quote ---
or just add an option somewhere.

--- End quote ---

This will not be made an option. We can't possibly add options for every little thing that could possibly be configured. All we would achieve is create a maze of options.

I have resolved this issue by removing the gray bg color completely (for read-only files) and fixing the state updates (i.e. file's icon in the project tree).
I hope everyone is happy now.

tiwag:

--- Quote from: mandrav on May 24, 2006, 02:19:25 pm ---I have resolved this issue by removing the gray bg color completely (for read-only files) and fixing the state updates (i.e. file's icon in the project tree).
I hope everyone is happy now.

--- End quote ---
CB is now much better usable with version-control-systems which are using the read-only bit for file-protection !

thanks a lot, i'm very  :D  :D  :D now !


btw.: i hope we don't get a bug-report about the missing ugly grey background when a file is set read-only  :P

Navigation

[0] Message Index

[*] Previous page

Go to full version