JASS Tags

Chocobo

White-Flower
Reaction score
409
How is this working? I see the J button on the toolbar...

Example :

[noparse]
JASS:
function chovynz takes player state returns nothing
    call GetPlayerState(GetPlayersAll(),SANE)
    call RemovePlayerUnit(Wallet)
    call ConfirmPlayerState(GetPlayersAll(),BONKERS)
    if PlayerState(GetPlayersAll()) == BONKERS then
      call MoveUnitLocation (chovynz(MainHero), 20030404.23,123331234.442)
    else
      call NotifyUnit(YourMom, GetAllPlayers())
    endif
endfunction
[/noparse]

btw, copy & paste should be fixed for j tags.
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
IMO, strings should be parsed:
JASS:
constant function thunderclap takes nothing returns string
    return "thunderclap"
//Non-parsed, zomg!//
endfunction


By parsed, I mean it should look something like this:
Code:
[B]constant function[/B] thunderclap [B]takes[/B] [COLOR="Navy"]nothing[/COLOR] [B]returns[/B] [COLOR="Navy"]nothing[/COLOR]
    [COLOR="Blue"]return[/COLOR] [COLOR="RoyalBlue"]"thunderclap"[/COLOR]
[COLOR="Green"]//Looks nice eh?//[/COLOR]
[B]endfunction[/B]
 
Reaction score
456
And the jass icon should be little more down as it is now, so it would be in line with other icons.

(I don't mean the button, I just mean the icon in the button)
 

SFilip

Gone but not forgotten
Reaction score
633
As already mentioned somewhere up there...
When you copy the text from a Jass box the linebreaks are gone. Well...just try for yourself.
JASS:
function test takes nothing returns nothing
    //blah blah
endfunction

becomes
JASS:
function test takes nothing returns nothing  //blah blah endfunction
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
As already mentioned somewhere up there...
When you copy the text from a Jass box the linebreaks are gone. Well...just try for yourself.
JASS:
function test takes nothing returns nothing
    //blah blah
endfunction

becomes
JASS:
function test takes nothing returns nothing  //blah blah endfunction

True. I guess one of the only solutions is to "Quote" the post then c'n'p the text within the tags. Such as this:

[noparse]
As already mentioned somewhere up there...
When you copy the text from a Jass box the linebreaks are gone. Well...just try for yourself.
JASS:
function test takes nothing returns nothing
    //blah blah
endfunction

becomes
JASS:
function test takes nothing returns nothing  //blah blah endfunction
[/noparse]

-- Copy the code

-- Then paste it:
JASS:
function test takes nothing returns nothing
    //blah blah
endfunction


Takes a while though. :(
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
Ofc, it depends on what browser you are using. If you use a browser(*) that handles the pre tag correctly then it works as it is supposed to do. I'm usually strongly against fixing browser bugs as long as they doesn't greatly reduce the user experience (or if it reduces my income).

*Afaik everything but Firefox.
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
True, it works on other browsers such as Avant Browser, but I don't see why it doesn't work for Firefox. Meh, oh well. :eek:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top