Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 12 of 12 FirstFirst ... 2101112
Results 111 to 117 of 117

Thread: OpenGL forum upgrade April 25th at 4AM PST

  1. #111
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    752
    Is there any way the text editor can capture TAB key events and actually indent code? Can one override the default behavior of the browser once the text editor gets the focus?

    The reason I ask is obvious: If you write some code from scratch to explain something you can't go ahead and indent it as usual by a simple press of the TAB key but only by tedious banging of the space bar. Ok, one could edit stuff in another editor and post the formatted code right into the code section, but that's not how it's supposed to work, is it?

  2. #112
    Administrator Regular Contributor
    Join Date
    Apr 2007
    Location
    Montreal
    Posts
    129

    New formatting options added to advanced editor

    We've just added a few new formatting options (all samples shown with spaces but must be used without spaces):

    Strickthrough: found in the advanced editor and used as [ STRIKE ] Some text [ / STRIKE ]
    Notes: found in the advanced editor and used as [ note ] Some text [ / note ]
    Variables: found in the advanced editor and used as [ var ] Some text [ / var ]
    Highlight: found in the advanced editor and used as [ HIGHLIGHT ] Some text [ / HIGHLIGHT ]

    Highlight will let you choose the language you wish to set the syntax highlighting as. You simply need to choose the language in the opening tag [ HIGHLIGHT = cpp ] Some C++ code here [ / HIGHLIGHT ]

    A complete list of languages is available on the Geshi website
    Webmaster Khronos.org and OpenGL.org

  3. #113
    Administrator Regular Contributor
    Join Date
    Apr 2007
    Location
    Montreal
    Posts
    129
    Quote Originally Posted by thokra View Post
    Is there any way the text editor can capture TAB key events and actually indent code? Can one override the default behavior of the browser once the text editor gets the focus?

    The reason I ask is obvious: If you write some code from scratch to explain something you can't go ahead and indent it as usual by a simple press of the TAB key but only by tedious banging of the space bar. Ok, one could edit stuff in another editor and post the formatted code right into the code section, but that's not how it's supposed to work, is it?
    Yup, that is how it's supposed to work. At least on all the forums I've been too. Changing the default behaviour of the tab on one field could also lead to those with accessibility issues, not being able to post questions anymore. As the tab is used to move from field to field.
    Webmaster Khronos.org and OpenGL.org

  4. #114
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    2,725
    Quote Originally Posted by Khronos_webmaster View Post
    We've just added a few new formatting options (all samples shown with spaces but must be used without spaces):
    Thanks! Much appreciated.

  5. #115
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    2,725
    Low priority, but would be nice if we could enable a setting or extension in VBulletin that prevents follow-ups to a thread after ~3-6 months (to stop folks from ressurrecting long-dead threads they dig out of the search engine). I notice that gamedev.net has something similar:

    * http://www.gamedev.net/topic/622911-...ch-game-engine
    Old topic!
    Guest, the last post of this topic is over 180 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  6. #116
    Advanced Member Frequent Contributor Aleksandar's Avatar
    Join Date
    Jul 2009
    Posts
    874
    Also my vote for this proposal. Old post should be locked.

  7. #117
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    752
    I just noticed that using code tags which are set in italics are completed automatically and form the following:

    '['code']'I would use QT for window/input management and possibly for an ingame GUI.
    '['/code']' -> '['code']'I would use QT for window/input management and possibly for an ingame GUI. '['/code']['code']['/code]'

    Code :
    I would use QT for window/input management and possibly for an ingame GUI.
    Code :
     

    I don't know if this behavior is intended.

Posting Permissions

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