Tags:
create new tag
view all tags
It's always bugged me that ?raw=on shows the text in a text box. It bugs me because you can't then use the browser find-in-window on the text.

Why do we do this? Why not put verbatim tags around the topic and process it as normal?

I tried this (trivial changes, mainly deletions, in UI/View.pm) and it works very nicely, thank you! Note that one possible negative may be to do with select-all of the text.

I'd love to share it and show everyone, but our DEVELOP branch isn't there yet.

  • The textbox is unbeaten when it comes to copying text. This is awful with browser text. But I wouldn't mind to have both a verbatim text and a textbox (perhaps with a javascript/css toggle). -- ArthurClemens - 01 Oct 2004

One question is why is there a hack in there for skins with names starting with text? presumably this is so you can ?skin=text&raw=on - but what is this meant to do (I can't find any documentation, and when I try it it doesn't do anything particularly useful)

-- CrawfordCurrie - 01 Oct 2004

With your suggestion as default, I wouldn't mind both but I concur with the sentiment that select-all would be made awkward with only your default.

Should we collect two desire scales, one for each and see how they stack up against each other?

-- MartinCleaver - 01 Oct 2004

Atcherly, I found a wee fragment of Javascript makes selectall trivial as well.

-- CrawfordCurrie - 01 Oct 2004

Crawford, text skin was for UsingTopicToDefineCSS

-- SamHasler - 02 Oct 2004

Do you mean a text view like this: https://www.twiki.org/cgi-bin/view/Codev/WhyShowRawInATextBox?skin=text&contenttype=text/plain&raw=on

Or like this with meta data? https://www.twiki.org/cgi-bin/view/Codev/WhyShowRawInATextBox?skin=text&contenttype=text/plain&raw=debug

The thing about text boxes I like is that text wrapps around nicely, and as Arthur stated you can do a Ctrl-A select.

-- PeterThoeny - 05 Oct 2004

Yes, that explains text skin now. I couldn't get it to do anything useful, but that'll be because I wasn't passing contenttype. I'll update the comment in the code so we don't have this conversation again.

Aye, the wrapping I hadn't thought of. That seems to be the only real reason. Though I still don't see why this can't simply be done with a skin. At the moment the only way to insert the topic text into the template is using %!TEXT%. If we had %!URLENCODEDTEXT% as well.... we wouldn't need raw=on.

-- CrawfordCurrie - 05 Oct 2004

Share your opinion of this idea by selecting one of the radio buttons below and clicking the button.
It would be nice ... 1 2 3 4 5 6 7 8 9 ... I want this so much it hurts

Average desireability: 7.0     Number of votes: 4
Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r11 - 2004-10-05 - CrawfordCurrie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.