You can paste in your raw code syntax and ProProfs automatically formats them to look pretty and readable.
Without highlighting, raw code appears as a bunch of plain black text that can be hard to read. But with code syntax highlighting, ProProfs automatically find the code, detect a language, and format it. Whether you want to add code examples to a page or are creating developer documentation, API guides; ProProfs simplifies the process for you.
// Syntax highlighting makes your code snippets beautiful and readable
var setArray = function(elems)
this.length = 0;
push.apply(this, elems);
return this; }
Code syntax highlighter currently supports 22 programming languages:
Apache, Bash, C#, C++, CSS, CoffeeScript, Diff, HTML, XML, HTTP, Ini, JSON, Java, JavaScript, Makefile, Markdown, Nginx, Objective C, PHP, Perl, Python, Ruby, and SQL.
If you need to edit a code snippet, you can make changes directly in the editor. However, if you want to add more code or change the format style, then you will need to right click on the code syntax and select Edit Code Highlighter. This will open the dialog window for editing.
Here are a few examples:
class A , 'test' + ?12)
answer = valid?4 && valid?CONST && ?A && ?A.ord
end.join
end
def [](index) self[index] end
def ==(other) other == self end
end
anIdentifier = an_identifier
Constant = 1
render action: :new
str =~ /^(?:foo)$/
str =~ %r{foo|bar|buz$}
str =~ %r!foo|bar$!
str =~ %r[foo|bar$]
str =~ %r((foo|bar)$)
Title
require_once 'Zend/Uri/Http.php';
namespace LocationWeb;
interface Factory
{
static function _factory();
}
abstract class URI extends BaseURI implements Factory
{
abstract function test();
/**
* Returns a URI
*
* @return URI
*/
static public function _factory($stats = array(), $uri = 'http')
{
echo __METHOD__;
$uri = explode(':', $uri, 0b10);
$schemeSpecific = isset($uri[1]) ? $uri[1] : '';
$desc = 'Multi
line description';
[
{
"title": "apples",
"count": [12000, 20000],
"description": {"text": "...", "sensitive": false}
},
{
"title": "oranges",
"count": [17500, null],
"description": {"text": "...", "sensitive": false}
}
]