Prism simple css example
@import url(https://fonts.googleapis.com/css?family=Questrial);
@import url(https://fonts.googleapis.com/css?family=Arvo);
@font-face {
src: url(https://lea.verou.me/logo.otf);
font-family: 'LeaVerou';
}
section h1,
#features li strong,
header h2,
footer p {
font: 100% Rockwell, Arvo, serif;
}
/*
Styles
*/
* {
margin: 0;
padding: 0;
font-weight: normal;
}
body {
font: 100%/1.5 Questrial, sans-serif;
tab-size: 4;
hyphens: auto;
}
a {
color: inherit;
}
Php example with line numbers and line highlights
use Ling\Bat\ColorTool;
use Ling\Light\Core\Light;
use Ling\Light\Helper\ServiceContainerHelper;
use Ling\Light\ServiceContainer\LightServiceContainerInterface;
require_once __DIR__ . "/../universe/bigbang.php"; // activate universe
$appDir = __DIR__ . "/..";
$container = ServiceContainerHelper::getInstance($appDir, [
'type' => 'blue',
'blueMode' => 'create',
]);
$light = new Light();
$light->setDebug(true);
$light->setContainer($container);
$light->registerRoute("/", function (LightServiceContainerInterface $service) {
return $service->get("kit")->renderPage('Light_Kit_Demo/portfoliogrid/portfoliogrid_home');
});
$light->run();