Sign in to follow this  
Followers 0
thenewkid

code boxs

4 posts in this topic

Hi how do i made the box where i put the code in to post on the form scrollable?


some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

This is a good question and I believe it was stickied once upon a time. Anyway, I wish more people asked this question before posting, it makes their posts much cleaner.

To make a code box, use the codebox tag:

[codebox]
;here is my code
[/codebox]

To make the code highlighted according to the AutoIt syntax highlighting you use the autoit tag:

;All my autoit code in here

This of course is what a codebox looks like:

CODE

;example codebox

;scroll down to see all the code

;end of example

This is what AutoIt color syntax highlighting looks like:

;example autoit code color highlighting box
While 1
sleep(100)
Wend

-The Kandie Man

Edited by The Kandie Man

"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

Share this post


Link to post
Share on other sites

how do u make the scollable?


some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with

Share this post


Link to post
Share on other sites

how do u make the scollable?

Look above, my third box down is scrollable. The code to do it is in my first codebox. I can't type the tags out of a codebox because then they will create a codebox and you won't see them


"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0