vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Word-Wrapping [code] tags? (https://vborg.vbsupport.ru/showthread.php?t=219439)

sherwood 07-25-2009 02:49 PM

Word-Wrapping [code] tags?
 
Is there away that I can edit the template bbcode_code or edit something so that the code tag will wordwrap when a user posts something that exceeds like 600px?

Thanks

James Birkett 07-25-2009 02:58 PM

$code is the actual contents of the code box, so I guess you could build something around it to do that. Seems very much possible to me.

sherwood 07-25-2009 03:03 PM

Would I do something like this:
Code:

<div style=”word-wrap: break-word”>$code</div>
As I tried that and it didn't really work it.

TheLastSuperman 07-25-2009 03:52 PM

Quote:

Originally Posted by sherwood (Post 1855215)
Would I do something like this:
Code:

<div style=?word-wrap: break-word?>$code</div>
As I tried that and it didn't really work it.

Specify it in the Styles Additional CSS Definitions then call it via div tags like above :D

sherwood 07-25-2009 03:55 PM

Erm slight problem. I don't really know exactly how I would do that.

Any chance you could explain a bit more for me?

Thanks,

--------------- Added [DATE]1248590375[/DATE] at [TIME]1248590375[/TIME] ---------------

Anyone?


All times are GMT. The time now is 08:25 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00937 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete