Jump to content

nsyrax

Level 1
  • Posts

    5
  • Joined

  • Last visited

Posts posted by nsyrax

  1. When I'm typing my notes and I type some lines of code, is there a website that has the feature that this forum has to turn plain text to look like formatted code. In otherwords, is there a site that I can go to, paste type like this:

     

    var quarter = function (number)  {
        return number/4;
    };
    if (quarter(24) % 3 === 0 ) {
      console.log("The statement is true");
    } else {
      console.log("The statement is false");
    }
     
    and have it format like this:
     
    var quarter = function (number)  {    return number/4;};if (quarter(24) % 3 === 0 ) {  console.log("The statement is true");} else {  console.log("The statement is false");}
  2. Is there a simple way, besides having to select text and change the display properties to look like code? Kind of like using the "Code" button in these posts. Basically I want an easy way to turn this:

     

    var quarter = function (number)  {
        return number/4;
    };
    if (quarter(24) % 3 === 0 ) {
      console.log("The statement is true");
    } else {
      console.log("The statement is false");
    }
     

    to this:

    var quarter = function (number)  {    return number/4;};if (quarter(24) % 3 === 0 ) {  console.log("The statement is true");} else {  console.log("The statement is false");}

    TIA!!!

×
×
  • Create New...