Results 1 to 4 of 4

Thread: Alternative for textarea

  1. #1
    Elite Member Michael's Avatar
    Join Date
    Jan 2009
    Posts
    1,091

    Default Alternative for textarea 8 Jan 2011 @ 15.12

    Does anyone know what I could use instead of the textarea tag to display a block of code for copying and pasting? I am not sure whether I must use it, or would it be fine to style a blockquote similarly to how I would with a textarea? Many thanks
      Reply With Quote

  2. #2
    Administrator saltedm8's Avatar
    Join Date
    Jun 2011
    Posts
    2,182
    Blog Entries
    3

    Default 8 Jan 2011 @ 15.26

    use <pre> </pre> tags..
      Reply With Quote

  3. #3
    Elite Member Michael's Avatar
    Join Date
    Jan 2009
    Posts
    1,091

    Default 8 Jan 2011 @ 16.15

    Thats something I considered earlier but I would want to use onFocus="this.select()" on it but it seemingly only works within forms The problem is that I am wanting to allow users to copy and paste code very easily but the damn CMS I am wanting to use wont allow textarea but all other tags within it.
      Reply With Quote

  4. #4
    Administrator saltedm8's Avatar
    Join Date
    Jun 2011
    Posts
    2,182
    Blog Entries
    3

    Default 8 Jan 2011 @ 18.03

    have a look at this Use jQuery - Blog - Highlight your source code with jQuery and Chili, would probably send you in the right direction
      Reply With Quote

Similar Threads

  1. Textarea min-height expand
    By Michael in forum HTML & CSS
    Replies: 7
    Last Post: 26 May 2011, @ 01.57
  2. Decent alternative to Wordpress?
    By Jason in forum Content Management Systems, Blogs & Forums
    Replies: 18
    Last Post: 3 May 2011, @ 16.33
  3. Decent alternative to Wordpress?
    By Jason in forum Coffee House
    Replies: 9
    Last Post: 12 Oct 2010, @ 18.34
  4. expanding textarea
    By stu2000 in forum Javascript Libraries
    Replies: 2
    Last Post: 30 Apr 2010, @ 13.28
  5. Help finding free font alternative
    By CloudedVision in forum Imagery, Graphics & Typography
    Replies: 2
    Last Post: 2 Aug 2009, @ 03.44

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •