How to develop an HTML and JS source code viewer using PHP
What is a source code?
A source code (also referred to as source or code) is the version of software as it is originally written (i.e., typed into a computer) by a human in plain text (i.e., human readable alphanumeric characters). … For the purpose of clarity “source code” is taken to mean any fully executable description of a software system.
Reference: Wikipedia
Example of a Java program source code?
public class SourceCode {public static void main(String [] args) {System.out.println(“This is a java source code”);}}
Before we dive into writing our PHP Program to check HTML and JS source code, we would consider some requirements.
- Mamp or Xampp, Lampp, Wamp, Ampp depending on your OS(Operating System).
- A text editor Vs code or Atom preferably or any text-editor your are compatible with.
- Bootstrap or pure css to beautify our program.
What is Mamp?
MAMP is a free, local server environment that can be installed under macOS and Windows with just a few clicks.