Thread Tools Display Modes
04/11/14, 05:47 AM   #1
schiz
Join Date: Apr 2014
Posts: 2
new line character aka chat parser documentation?

I've found that you can color text with |cFFFFFF command,
I'm looking for new line character, anyone can help ?
Regards.
  Reply With Quote
04/11/14, 08:47 AM   #2
Stormknight
 
Stormknight's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 128
It's \n

So your text might be
Code:
d("This is sample\ntext")
which would appear as:

This is sample
text

Also, don't forget using |r to escape the colour sequence after you initiate with |c

Last edited by Stormknight : 04/11/14 at 08:50 AM.
  Reply With Quote
04/11/14, 11:38 AM   #3
schiz
Join Date: Apr 2014
Posts: 2
newline

But this affect only console warning, i want newline on global chat,
sending: /zone this is\ntest won't do nothing.
  Reply With Quote
04/11/14, 11:56 AM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
If it doesn't work, then you can't do that. You'll have to send two messages.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » new line character aka chat parser documentation?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off