10 Digital Trends for 2019
With only three months left in the year, 2019 will be here before we know it. At Codeintel, we welcome another new year filled with technological advances. We’ve always been...
Filter by Category
With only three months left in the year, 2019 will be here before we know it. At Codeintel, we welcome another new year filled with technological advances. We’ve always been...
Reno, NV - August 13, 2018
Hydra includes our ‘Ecko Blocks’ plugin, which introduces additional features to the Code core Gutenberg block. These features include language specific syntax highlighting, multiple color schemes, line numbers, and support for popular languages (complete list can be found below).
// This is an example of the 'Light' color scheme
function wp_get_time(){
if(get_theme_mod('layout_use_custom_date_format', false)){
the_date();
}else{
the_time('jS F Y ');
}
}
// This is an example of the 'Dark' color scheme.
function wp_get_time(){
if(get_theme_mod('layout_use_custom_date_format', false)){
the_date();
}else{
the_time('jS F Y ');
}
}
// This is an example of the 'High Contrast' color scheme.
function wp_get_time(){
if(get_theme_mod('layout_use_custom_date_format', false)){
the_date();
}else{
the_time('jS F Y ');
}
}
If you wish to display line numbers along with a Code block this an be enabled via the included options. Below is an example Code block using line numbers with the Dark color scheme.
const http = require('http');
const hostname = '127.0.0.1';
const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World\n');
});
server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
});
Below is a preview of some of the above languages being highlighted.
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
.wrapper{
max-width: 1400px;
width: 100%;
@media (max-width: 1470px) {
padding: 0 2.5%;
}
}
def openFile(path):
file = open(path, "r")
content = file.read()
file.close()
return content
def self.consume_front(str, size)
str[0..size] = ''
str.lstrip!
end
ls -la /home
function ivy_get_time(){
if(get_theme_mod('layout_use_custom_date_format', false)){
the_date();
}else{
the_time('jS F Y ');
}
}