|
Hey Chris,
John's original suggestion is a good one too. I think a "Unit testing and related" forum would be nice to have.
|
|
|
|
|
I was just doing a diff of some modifications I made to a recent Quick Answer I posted and noticed that it is pretty much useless. If a line has a change, it seems to cross out the entire line on the left and show the non-crossed out new version on the right. The colorization also does not go past the initial viewing window (i.e., when I scroll to the right, there is no colorization). This is basically like having me line up 2 instances of notepad side by side to try and figure out what the diffs are manually.
If you are having trouble using a textarea to display the diff, why not just use a wrapped fixed size structure? Perhaps just an HTML table in which each TD contains a single letter (the left table for the old version and the right table for the new version). That way, you don't have do do anything fancy... you can just give each TD a background color according to its diff (new text, deleted text, modified text, etc.). And if you are worried about bandwidth, you can just transmit the data in a compressed format and parse it into HTML on the client side using some JavaScript.
I realize the textarea with synchronized scrolling is neat and all, but I thought I'd suggest a simple solution to you so you can get something workable up and running.
I'm running IE8 on Windows XP Home with Service Pack 3.
Also, not sure if you care, but the textareas don't sync when using Chrome. And the colorization issues occur on IE8, Chrome, and Firefox.
Visual Studio is an excellent GUIIDE.
|
|
|
|
|
Our current diff tool only works on a line-by-line basis. We're looking to get char-by-char diffing to replace this. It's on our TODO the list and we'll try to get it out as soon as possible. But to be honest, it's not very high on that list at the moment.
|
|
|
|
|
Understandable. If I really want to do a diff, I can just copy the old and new text and paste them into text files, then do a local diff on my computer using WinMerge. That's still not quite perfect though, as I can only get the rendered text, not the HTML, of previous versions. Actually, I could just view the source of the page and get the HTML, but that's even more work and still not the original text that was entered (emoticons, for example, would render to HTML differently than they were entered as text). Anyway, a workable solution exists for now, but I'll be excited to see the char-by-char diff whenever it does come out.
Visual Studio is an excellent GUIIDE.
|
|
|
|
|
|
Hi,
Recently I start to find the comments on CP articles appearing in orange; I'm not aware of any change I made to my browser settings, and I can't find any facility to set colors anywhere on CP itself in my "Profile."
For my old eyes, the orange text is hard to read.
Appreciate any suggestions.
thanks, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
I noticed that too recently. I assumed it was some momentary glitch while they were switching style sheets or something.
Visual Studio is an excellent GUIIDE.
|
|
|
|
|
Nope.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
Can you point me to an example?
Sounds like an author has a hanging "h2" somewhere.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
Hi Chris,
Lambda Expressions and Expression Trees: An Introduction[^]
The above still has orange comments, and I haven't even finished my second liter of soy-milk for the day.
best, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
Fixed
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
I think it might be indicative of the respect (faith ?) in which I hold CP that the thought the orange text could be a "fluke" did not cross my mind, and that my immediate assumption was there was a new feature to set comment colors ... if only I could locate it ...
best, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
Or a testament to our fondness of hidden features...
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
This is just a suggestion, not a bug report.
Would be nice to see a "Messages Posted In This Forum" link at the top of each forum (such as the Lounge or Site Bugs / Suggestions forums). It would act like the "Messages Posted" link on my profile page, but would only show messages I've posted in that specific forum.
Visual Studio is an excellent GUIIDE.
|
|
|
|
|
Added as task #1946
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Wow, you really must look at every message!
|
|
|
|
|
Always
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
See here[^]. As I suggested before, can we get a normal text editor?
Browser : FF 3.0.15
Best wishes,
Navaneeth
|
|
|
|
|
We're working on it
|
|
|
|
|
In the mean time, would it be possible to roll it back to a version of the forums posting form please? It seems fairly reliable, and would probably be more familiar to most regulars here.
|
|
|
|
|
That sounds like it could at least be a good temporary solution. Thanks for the suggestion. We'll do some tests internally and see how well that works and consider some other option. Don't worry, this is a priority for us. We'll have something out for you guys as soon as possible.
|
|
|
|
|
I just tried out Quick Answers and even edited a few questions and answers -- looks promising!
I selected questions with the "STL" tag and it looks to me like every question that got tagged with "C++" also got the STL, ATL, and WTL tags, even though they're not appropriate, at least for the questions I've looked at so far. Is that a bug, or should I go ahead and remove those inappropriate tags when I see them?
Thanks again for doing all the work to set up Quick Answers -- it's definitely renewed my interest in answering questions again!
|
|
|
|
|
Thanks for the kind words Gordon!
Yes, you can absolutely adjust those tags. This is exactly the kind of thing we're hoping to get with the new system.
|
|
|
|
|
Hello all,
Would it be possible to add a syntax checking button in the post form?
I don't know... It could call something like the google checking thing...
just an idea... probably it has been posted before and also probably will be impossible or not interesting but here it goes...
Keep up with the good job.
|
|
|
|
|
If we had something that did a quick Ajax request to run code within PRE tags through the CS (et al.) compiler and then display the results, we'd lose 90% of our questions .
But seriously: most snippets won't compile because they are snippets. We could run it through a simple syntax checker (like in the VS editor) but I'm not aware of a simple, foolproof way to do this. Those who need the check most will be the ones least likely to set their snippet block's language correctly.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|