Jump to content

Recommended Posts

Posted (edited)

Hello,

When I want to post some code to the forum, I always have some issues on how to paste it correctly so the code looks correct in my post.

The problems I ran into are:

- the tab indent disapear

- some smileys appear with some regexp patterns

- the forum try to auto format the text and add some html tags in my regexp patterns

- paste the code in "toggle edit mode" to keep the tab indents but this method adds some html tags here and there

- I don't know about you guys, but when I try to paste some code in the "Special BB code" and select "Autoit" then the window stretches up and I cannot click the button to validate (the button goes out of my screen (Google Chrome and Windows 7 x64))!

I tried several ways and it seems that the best way of doing it is:

1 - Paste the code as plain text (to make sure no text formatting is kept)

2 - write myself the [ autoit ] tags at the beginning and end of the code

3 - now the problem is that this method doesn't keep the tab indents.

I was thinking that there should be a tutorial pinned in every forum, because I've seen that I am not the only one having troubles with it.

So if you have some tips, I'd be happy to know them so I don't pull my hairs every time!

jmon.

[EDIT]

Solved: So it's a problem with the IPB forum editor, so while there is no update, the best way of doing it is (From Melba23 and BogQ):

1 - Toggle "Edit mode" (Top left of the text editor)

2 - do all you things in edit mode

3 - add manually the autoit tags for autoit code ([*autoit*] for the beginning, [*/autoit*] for the end (remove the stars))

4 - preview your post. If there is unwanted html tags, then remove them manually

5 - post

This method keeps the TAB indents, but sometimes add some unwanted html tags in RegExp Patterns and URLs. Also sometimes, #includes containing "<" or ">" will disappear. In this case, preview your post and if you notice this then just write them again...

Edited by jmon
Posted (edited)

just do from the start to the end in toggleded mode and add every tag by hand and youl probably not have any problems ;)

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)

  Reveal hidden contents


460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
  • Moderators
Posted

jmon,

This is a problem with the IPB forum editor - and each time Jon posts a bug report it comes back "cannot reproduce". :(

It does however seem to be very browser dependent and so each case is slightly different. Personally I use the "basic" editor mode (as opposed to the "WYSIWYG" version - you toggle using the button at top left) and add all my tags by hand. I get very few problems - other than the addition of <b></b> tags in the middle of some URL tags. I suggest you post like that for now and hope that the next update gets us a better built-in editor. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

@BogQ and @Melba23

Thanks for you help. I'm glad to see that I'm not the only one having the issue. I will use the "toggle editing mode" from now on!

Another bug I got sometime, is the includes are removed sometimes (I guess when they contain "<" or ">"), so posting something like this:

#include <imagesearch.au3>
#include <Array.au3>

may come out like this sometimes:

#include 
#include <Array.au3>
  • Moderators
Posted

jmon,

Same problem - same solution as far as I am concerned. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

Strange that they (IPB) can't reproduce it, but hundreds of users can.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

@M23 - Thanks, works perfectly

@jmon - There is a test thread in the CHAT forum for testing various posting methods

kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

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
×
×
  • Create New...