pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/ChristopherAndrewTopalian/CATopalian_JavaScript_Universal_Code_Colorer

hub.githubassets.com/assets/primer-a33d805aa3bce2cb.css" /> GitHub - ChristopherAndrewTopalian/CATopalian_JavaScript_Universal_Code_Colorer: Can Color All Programming Languages and right now has JS, PY and Slua already defined! To define more languages just specify which language and add whatever keywords you like to the array. · GitHub
Skip to content

ChristopherAndrewTopalian/CATopalian_JavaScript_Universal_Code_Colorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CATopalian JavaScript Universal Code Colorer

Can Color All Programming Languages and right now has JS, PY and Slua already defined! To define more languages just specify which language and add whatever keywords you like to the array.


Import the Colorer Script

<script src = '../js/color/catopalian_javascript_universal_code_colorer.js'></script>

Body Section

We add this to the body tag

<body onnload = 'applyCustomHighlighting();'>

Code Section

We then just add a code tag

<h3> JavaScript </h3>
<code class="custom-code" data-language="js">let speed = 70; // Set initial velocity

function engageThrusters()
{
    console.log("Thrusters engaged at", speed);
}

engageThrusters();</code>

Full HTML Example

Full HTML Example

<!DOCTYPE html>
<html lang = 'en'>
<head>
<title> CATopalian JavaScript Univeral Code Translator Vertical </title>

<style>

body
{
    background-color: rgb(0, 0, 0);
    
    font-size: 24px;
    color: rgb(255, 255, 255);
}

h1, h2, h3, h4, h5, h6
{
    margin: 2px;
}

code
{
    
    font-size: 24px;
    font-weight: bold;
}

</style>

<script src = '../js/color/catopalian_javascript_universal_code_colorer.js'></script>

</head>

<body onnload = 'applyCustomHighlighting();'>

<h3> SLua </h3>
<code class="custom-code" data-language="lua">local speed = 70 -- Set initial velocity

local function engageThrusters()
    print("Thrusters engaged at " .. speed)
end

engageThrusters()</code>

<hr>

<h3> JavaScript </h3>
<code class="custom-code" data-language="js">let speed = 70; // Set initial velocity

function engageThrusters()
{
    console.log("Thrusters engaged at", speed);
}

engageThrusters();</code>

<hr>

<h3> Python </h3>
<code class="custom-code" data-language="py">speed = 70 # Set initial velocity

def engageThrusters():
    print("Thrusters engaged at", speed)

engageThrusters()</code>

<hr>

</body>

</html>

How to Use the Colorer JS File

In the src > js > color folder we find the Colorer Script named catopalian_javascript_universal_code_colorer.js

note This file named catopalian_javascript_universal_code_colorer.js must be in your project folder to color the code.

Remember to applyCustomHighlighting() in the body onnload of your html file.

Remember to use code tags and specify which language you want to use and put your code in between those code tags and it will be now be colored.


Use App: https://christopherandrewtopalian.github.io/CATopalian_JavaScript_Universal_Code_Colorer/CATopalian_JavaScript_Universal_Code_Translator.html

Video: https://www.youtube.com/watch?v=tswEICyl8rs

001

002


How to Download this App

  1. Click the green Code Button on this github page
  2. Choose Download ZIP
  3. Save the Zip File
  4. Extract All
  5. Double click the HTML file to start the App

Happy Scripting :-)

//----//

// Dedicated to God the Father
// All Rights Reserved Christopher Andrew Topalian Copyright 2000-2026
// https://github.com/ChristopherTopalian
// https://github.com/ChristopherAndrewTopalian
// https://sites.google.com/view/CollegeOfScripting
College of Scripting Music & Science

About

Can Color All Programming Languages and right now has JS, PY and Slua already defined! To define more languages just specify which language and add whatever keywords you like to the array.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy