• Isadora
  • Get it
  • Forum
  • Help
  • ADD-ONS
  • Newsletter
  • Impressum
  • Dsgvo
  • Impressum
Forum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    Code Formatting for the Forum

    How To... ?
    5
    8
    1760
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gavspav Beta Silver last edited by

      Now we have a javascript actor can we have an option for submitting code in forum posts please?

      You've probably seen this in other forums - it would make any scripts look tidy and easier to copy and paste.

      http://www.digitalfunfair.co.uk I'm using M1 MBP 14" mostly but sometimes use older Mac & Windows machines.

      1 Reply Last reply Reply Quote 0
      • Skulpture
        Skulpture Izzy Guru last edited by

        Good idea!

        Graham Thorne | www.grahamthorne.co.uk
        RIG 1: Windows 11, AMD 7 Ryzen, RTX3070, 16gig RAM. 2 x M.2 SSD. HD. Lenovo Legion 5 gaming laptop.
        RIG 2: Windows 11, Intel i19 12th Gen. RTX3070ti, 16gig RAM (ddr5), 1x M.2 SSD. UHD DELL G15 Gaming laptop.
        RIG 3: Apple rMBP i7, 8gig RAM 256 SSD, HD, OS X 10.12.12

        1 Reply Last reply Reply Quote 0
        • DusX
          DusX Tech Staff last edited by

          Yeah, I just saw your JS post @gavspav its needed.

          Troikatronix Technical Support

          • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
          • Isadora Add-ons: https://troikatronix.com/add-ons/
          • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

          Running: Win 10 64bit, i7-8750H, M.2 PCIe SSD's, 16gb DDR4-2666, nVidia GTX 1070 | located in Ontario Canada.

          1 Reply Last reply Reply Quote 0
          • Bill Cottman
            Bill Cottman last edited by

            Great idea!

            http://www.BillCottman.com : Isadora3.0.8f09 with MBP OS X 10.11.6 in Minneapolis, MN

            1 Reply Last reply Reply Quote 0
            • Michel
              Michel Izzy Guru last edited by

              Added pretty print. You can now add <code></code> and <pre></pre> tags. Though you have to switch to "show rich text" if you add the tags.

              function main()

              {

              var arr = []

              while(arr.length < 4){

              var randomnumber=Math.ceil(Math.random()*15)

              var found=false;

              for(var i=0;i<arr.length;i++){ if(arr[i]="=randomnumber){found=true;break}" }="" if(!found)arr[arr.length]="randomnumber;" return[arr[0],arr[1],arr[2],arr[3]]="" <="" code=""></arr.length;i++){>
              5be81a0c39a9b51739edde96db2c6f.png

              Michel Weber | www.filmprojekt.ch | rMBP (2019) i9, 16gig, AMD 5500M 8 GB, OS X 10.15 | located in Winterthur Switzerland.

              1 Reply Last reply Reply Quote 0
              • G
                gavspav Beta Silver last edited by

                Tried it but I can't get my head around it!

                Is there an icon I can press or something? Hate Html!

                http://www.digitalfunfair.co.uk I'm using M1 MBP 14" mostly but sometimes use older Mac & Windows machines.

                1 Reply Last reply Reply Quote 0
                • DusX
                  DusX Tech Staff last edited by

                  Just a quick test, with prettyprint class

                  Using Code tag:
                  function main(){ return arguments[0] + 1; }


                  Using Pre tag:

                  function main(){
                  return arguments[0] + 1;
                  }
                  

                  Just a quick test without prettyprint class.

                  Using Code tag:
                  function main(){ return arguments[0] + 1; }


                  Using Pre tag:

                  function main(){
                  return arguments[0] + 1;
                  }
                  

                  Troikatronix Technical Support

                  • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                  • Isadora Add-ons: https://troikatronix.com/add-ons/
                  • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

                  Running: Win 10 64bit, i7-8750H, M.2 PCIe SSD's, 16gb DDR4-2666, nVidia GTX 1070 | located in Ontario Canada.

                  1 Reply Last reply Reply Quote 0
                  • G
                    gavspav Beta Silver last edited by

                    I was just posting to say I still don't understand how to do this but I think I've got it now.

                    You have to click the 'show source' icon which sometimes becomes the 'show rich text' icon?

                    I'm just going to try it now

                     If that's alright with you guys 

                    http://www.digitalfunfair.co.uk I'm using M1 MBP 14" mostly but sometimes use older Mac & Windows machines.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post