Code Tags and Opera 12

Ah, it actually does, but you need a blank line between your text and the start of your code (added newlines to prior Did you know…), example:

`function generateRows(list, rowLength) { 
var rows = [], 
currentRow = [];

list.map(function(i, li) {                                                  
    if (i % rowLength === 0 && i !== 0) {                                   
        rows.push(currentRow);                                              
        currentRow = [];                                                    
    }                                                                       
    currentRow.push(li);                                                    
});                                                                         
rows.push(currentRow);                                                      

return rows;
}

Also, I copied and pasted from the prior output which is why all formatting was lost (not sure if the formatting remains lost when using tabs…so I reserve that statement for a later example ;))

Use Ctrl + End

1 Like