If you want to print PHP or HTML codes with script or any other tags to define/state your point, you can do using following way and it works properly and perfectly. Many colleagues get stuck while developing an application where such requirement comes they use this technique to get their work done.
You need to wrap your code within <xmp> Your code lies here </xmp>. Refer to below example:
test"; ?>
Name:
You wrote: {{name}}
for($i=0;$i<=5;$i++)
{
for($k=5;$k>=$i;$k--)
{
echo " ";
}
for($j=1;$j<=$i;$j++)
{
echo "* ";
}
echo "
";
}
for($i=4;$i>=1;$i--)
{
for($k=5;$k>=$i;$k--)
{
echo " ";
}
for($j=1;$j<=$i;$j++)
{
echo "* ";
}
echo "
";
}
ul.header li a {
color: #FFF;
font-weight: bold;
text-decoration: none;
padding: 20px;
display: inline-block;
}
.content {
background-color: #FFF;
padding: 20px;
}
.content h2 {
padding: 0;
margin: 0;
}
.content li {
margin-bottom: 10px;
}
.active {
background-color: #0099FF;
}
content="width=device-width, initial-scale=1, shrink-to-fit=no">
import React, { Component } from "react";
import logo from "./logo.svg";
import "./App.css";
class App extends Component {
render() {
return (
Edit src/App.js
and save to reload.
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
);
}
}
export default App;