Make code snippets expandable

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Make code snippets expandable

Post by serengeor »

Hi there,
I have a suggestion for code snippet boxes. I don't know if it is possible for you to integrate something like this easily, but I'm sure it would be useful to have.
The problem with current snippet boxes is that when you have lots of code in them they are just a bit too small and it is hard to read the code users post.
Possible solutions:
a) Add a button which would let user expand it.
b) Increase max size at least to 400px (seemed close enough when I edited the style sheet property in google chrome), but maybe not everyone will like it that big (monitor problems, etc.?)
c) ...
Working on game: Marrbles (Currently stopped).
CuteAlien
Admin
Posts: 9682
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Make code snippets expandable

Post by CuteAlien »

You could switch to SubSilver2 style, there code-snippets are as large as they can be.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: Make code snippets expandable

Post by serengeor »

Yeah, that should work, though I liked using the new style better.
Edit: I just wrote a chrome extension for myself to change the max height of code box. If anyone needs it, just ask (before it gets lost).
Working on game: Marrbles (Currently stopped).
Post Reply