 SupAlpuket
 SupAlpuket
        
                    i can't add encoded new line (\n) in 'code' 
block / builder tool
        
                
     
                        
    
    
                
    
                
    
                
        
                                         Graham
 Graham
        
                     SupAlpuket
 SupAlpuket You can but you have to be using the full page code editor  NOT the code blocks in the building tool it has to be the the full page code editor 
I used this to test 
<script>
var foo = "<pre>These\nare\nnewlines.</pre>";
  document.write(foo);
</script>
Copy code  and heres the output
http://graham99.xtgem.com/Anl
I am not sure if anything can be done for building tool code blocks but I will ask tomorrow
        
                
     
                        
    
    
                
    
                
    
                
        
                                         SupAlpuket
 SupAlpuket
        
                     Graham
 Graham yes, that i know, but my phone not agree to use full text editor :v
        
                
     
                        
    
    
                
    
                
    
                
        
                                         Graham
 Graham
        
                     SupAlpuket
 SupAlpuket The staff have been informed and are looking in to it 
a solution is to put your script into a plain text file with a .js extension and then use the "local file include" xt function to add it to the page
ie my_js.js and then "include" the file my_js.js (.js files are not parsed by the building tool)
building your page like this may be better for you anyway as it allows you to use smaller blocks that are easier to edit on a mobile
        
                
     
                        
    
    
                
    
                
    
                
        
                                         tiaxgame
 tiaxgame
        
                     Graham
 Graham Can include file.xt by xt function (not used xtscript) ???
Ex: <xt:include url="domain.xtgem.com/file.xt" />
        
                
     
                        
    
    
                
    
                
    
                
        
                                         Graham
 Graham
        
                     tiaxgame
 tiaxgame Yes xt:include is not bothered about what extension a file has 
The original problem should be fixed later today as soon as the production version is updated It was a old legacy code causing the issue and that has been removed
        
                
     
                        
    
    
                
    
                
    
                
        
                                         tiaxgame
 tiaxgame
        
                     Graham
 Graham oh! Can used xt function to "call functions" !? (no xtscript)
Ex: <xt:call function="pi" />
Print: "3.14xxxxx"
        
                
     
                        
    
    
                
    
                
    
                
        
                                         tiaxgame
 tiaxgame
        
                     Graham
 Graham oh! Can used xt function to "call functions" !? (no xtscript)
Ex: <xt:call function="pi" />
Print: "3.14xxxxx"