examples


Log

Author Commit Date CI Message
Mariano de Achaval 0803525b 2020-11-27T15:00:35 Added support for DataWeave language (#2659)
Michael Schmidt f0e2b70e 2020-11-20T17:09:54 Added support for Apex (#2622)
Arend van Beelen jr 8831c706 2020-11-12T20:43:52 Added PromQL language (#2628)
Michael Schmidt cb75d9e2 2020-09-13T23:26:33 Added support for SML (#2537)
Aayan 4d31e22a 2020-09-11T12:07:11 Added support for Birb (#2542)
Sri Harsha Chilakapati ad748a00 2020-08-30T18:16:21 Added PureScript language definition (#2526)
Barilko Vitaliy 5c33f0bb 2020-08-17T15:39:02 Added support for BSL (1C:Enterprise) (#2520)
Dmitry Eroshenko 004eaa74 2020-08-14T00:00:21 Added support for MongoDB syntax (#2518)
Michael Schmidt 2da2beba 2020-08-12T13:10:38 Added support for Stan (#2490)
Daniel 'Eisbehr' Kern bf115f47 2020-08-11T15:33:48 Added support for TypoScript (#2505)
Artyom Sovetnikov 388ad996 2020-08-07T21:14:34 Add support for NaniScript (#2494)
Michael Schmidt 649e51e5 2020-07-27T13:50:41 Added support for Dhall (#2473)
Michael Schmidt ed1df1e1 2020-07-22T17:27:00 Added support for YANG (#2467)
Osip Fatkullin 3fcce6fe 2020-07-22T18:12:01 Added support for .gitignore (#2481)
Michael Schmidt 2ff40fe0 2020-07-18T15:29:33 Rust: Improvements (#2464)
Michael Schmidt 398e2943 2020-07-18T14:58:39 Added support for Cypher (#2459)
Osip Fatkullin ed8fff91 2020-07-11T01:07:19 Added support for EditorConfig (#2471)
Michael Schmidt 22eb5cad 2020-06-28T01:41:28 Added support for Smali (#2419)
Xy Ren 3a127c7d 2020-06-24T20:30:38 Add support for the language Agda (#2430)
Starbeamrainbowlabs ae0327b3 2020-06-22T12:16:29 Added JS stack trace language (#2418) This language highlights JavaScript stack traces generated by commonly used JS engines.
edukisto 37273a6f 2020-06-21T11:34:19 Dockerfile: Fixed strings inside comments (#2428) Strings inside comments broke comments. Comments are now greedy, so this can't happen anymore.
Alex Mabry 9e64c62e 2020-05-29T12:28:05 GraphQL: Added support for multi-line strings and descriptions (#2406)
Michael Schmidt caec5e30 2020-05-13T11:26:38 Added support for XML doc in C#, F#, and VB.net (#2340)
Michael Schmidt 8a72830a 2020-05-07T22:44:16 Regex: Added aliases and minor improvements (#2325) This adds a lot of aliases to the regex tokens, so themes can apply their styles. It also makes a few improvements. See the PR for more details.
HeX0R101 d0c1c70d 2020-05-06T23:59:29 Added support for PureBasic (#2369) A language based on Basic (BlitzBasic to be precise) with inline assembler also and direct API calls. Can compile on Windows, Linux, and macOS
Michael Schmidt 33e49956 2020-04-29T15:39:59 GLSL: Improvements (#2321) This improves GLSL by extending C instead of C-like.
Michael Schmidt 87a5c7ae 2020-04-29T15:29:51 Added support for HLSL (#2318) https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl
Michael Schmidt 053016ef 2020-04-27T23:18:30 Added support for Racket (#2315)
Michael Schmidt cde5b0fa 2020-04-27T22:39:29 Added support for Warpscript (#2307)
Michael Schmidt 1093ceb3 2020-04-27T22:33:02 Added support for UnrealScript (#2305)
Michael Schmidt bd4d8165 2020-04-27T22:29:20 Added support for Peoplecode (#2302)
Michael Schmidt de21eb64 2020-04-27T22:22:12 Added support for AL (#2300)
Sergey Romanov 8704cdfb 2020-04-12T23:15:37 Added support for Structured Text (IEC 61131-3) (#2311)
Michael Schmidt c917a8ca 2020-03-25T11:44:33 C#: Removed invalid strings from example (#2266) C#'s example page contained some invalid strings.
Cassie Jones 43efde2e 2020-03-23T17:44:09 Added support for LLVM IR (#2221) This adds support for LLVM's assembly language. https://llvm.org/docs/LangRef.html
Peter Budai 8119e57b 2020-03-16T21:17:45 Added support for Power Query (#2250) This adds support for Power Query. https://docs.microsoft.com/en-us/powerquery-m/
Peter Budai 9227853f 2020-03-13T21:52:26 Added support for DAX (#2248) This adds support for DAX (Data Analysis Expressions). https://docs.microsoft.com/en-us/dax/
Michael Schmidt bf4f7bfa 2020-03-10T14:59:46 Added support for Excel formula (#2219) This adds support for Excel's formula terms.
Michael Schmidt 1f7a245c 2020-03-07T11:53:31 Added tests for examples (#2216) This adds a new test to validate the structure and syntax of all examples and moves the existing example test into the mocha test suite.
Michael Schmidt 6232878b 2020-03-07T11:37:11 Examples: Updated content header (#2232) This changes the automatically generated header of examples on Prism's example page. The `overrideExampleHeader` option in `components.json` is no longer supported.
Michael Schmidt bd16bd57 2020-02-24T14:43:16 Shell-Session: Improvements (#2208) - Added support for elevated shells starting commands with `#` instead of `$`. - The user and cwd info `bash` and `sh` print before the interactive shell will now be highlighted. - Changed the line ends of test files to CRLF.
Michael Schmidt 15983d52 2020-02-23T14:12:37 Added support for Solution (.sln) files (#2213) This adds support for VS Solution files. https://docs.microsoft.com/en-us/visualstudio/extensibility/internals/solution-dot-sln-file?view=vs-2019
Cat Stevens f941102e 2020-02-16T13:49:33 Added support for Factor (#2203) This adds support for the [Factor](https://factorcode.org) language.
Jason Tatton b24f7348 2020-02-14T21:55:32 Add Concurnas support (#2206) Concurnas is an open-source JVM programming language designed for building reliable, scalable, high performance concurrent, distributed and parallel systems. For more information please see: https://concurnas.com/
Saswat Padhi 2a570fd4 2020-01-12T02:23:06 OCaml: Improvements (#2179) - Added some missing keywords - Added highlighting for modules, labels, and constructors - Split polymorphic variant types and type variables
Michael Schmidt c40d96c6 2020-01-08T15:57:52 Added QML (#2139) This adds support for QML (Qt Modeling Language), a user interface markup language. https://en.wikipedia.org/wiki/QML https://doc.qt.io/qt-5/qtqml-index.html
Michael Schmidt 0b539136 2020-01-06T14:39:45 Added checks for examples (#2128) This adds a check to `premerge` to detect missing and lone examples. All currently missing examples were added with some exceptions.
Michael Schmidt 9908ca69 2019-12-02T01:43:42 Robotframework: Renamed example file (#2126) This renames the example for the Robotframework language to match its id.
Michael Schmidt 631f1e34 2019-10-26T18:53:47 Added support for BrightScript (#2096) This adds support for BrightScript.
Michael Schmidt f31946b3 2019-10-25T21:53:29 Added support for Moonscript (#2100) This adds support for the Moonscript language.
Michael Schmidt aaf13aa6 2019-10-25T21:12:20 Added support for BBCode (#2095) This adds support for the BBCode markup language.
Michael Schmidt cfac94ec 2019-10-16T11:41:51 Added SQF language (#2079) This adds support for the SQF language. https://community.bistudio.com/wiki/SQF_syntax
Michael Schmidt 0b771c90 2019-10-16T11:33:14 Added support for etlua (#2050) This adds support for etlua (Embedded Lua templating).
Michael Schmidt 2f3da7e8 2019-10-16T11:18:57 Added support for FTL (#2080) This adds support for FTL (Freemarker language).
thomasdegroot18 c42f877d 2019-09-05T17:28:28 Added support for SPARQL language (#2033) This adds support for the SPARQL language. https://www.w3.org/TR/sparql11-query/
Michael Schmidt f7eaa618 2019-09-03T12:56:20 Added Robot Framework plain text format (#2034) This adds support for the Robot Framework plain text space separated format. https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#plain-text-format
Michael Schmidt cc2cf3f7 2019-09-02T20:29:26 Added support for Solidity (#2031) This adds support for the Solidity language. https://solidity.readthedocs.io/en/v0.4.23/
Michael Schmidt 3fdb7d55 2019-09-02T20:08:04 Added support for AQL (#2025) This adds support for the AQL language. https://www.arangodb.com/docs/stable/aql/
Michael Schmidt a7cf56b7 2019-08-29T16:25:02 Added suppprt for Zig (#2019) This adds support for the Zig language. https://ziglang.org/
Michael Schmidt 9f722586 2019-08-17T14:36:50 Added support for Firestore security rules (#2010) This adds support for Google Cloud Firestore security rules.
Michael Schmidt e2b99f40 2019-08-14T11:40:43 Added support for GDScript (#2006) This adds support for the GDScript language.
cedporter 076f6155 2019-08-08T15:16:31 SAS: Major improvements (#1981) This makes various improvements to the SAS language definition such as adding support for embedded SQL, missing keyword and language elements, more granular tokenizing, and many more.
Jakub Klímek 508d57ac 2019-08-06T15:30:24 Added RDF Turtle/TriG language (#2012) This adds support for the RDF Turtle/TriG language.
Michael Schmidt e7702ae1 2019-07-22T01:27:48 Diff: Added support for syntax highlighting inside diff blocks (#1889) This adds support for syntax highlighting inside diff blocks via a new plugin called: Diff Highlight.
Michael Schmidt c8844286 2019-07-21T22:59:46 Highlight JS tagged template literals (#1931) This adds support for highlighting embedded languages in JavaScript tagged template literals.
Michael Schmidt c93c066b 2019-07-20T12:35:15 Added support for Splunk SPL (#1962) This adds support for Splunk SPL and corrects the position of the SQL in `components.json`.
Michael Schmidt bb84f98c 2019-07-15T23:22:20 Added support for DNS zone files (#1961) This adds support for DNS zone files. The highlighting is quite simple as every type and class is highlighted as `keyword`. This is intentional as other token names (e.g. `class-name`, `function`, `builtin`, ...) are not highlighted by every theme resulting in large portions of unstyled text for some themes.
Michael Schmidt d58d2aeb 2019-07-13T15:41:07 F#: Improved character literals (#1956) This adds support for all F# character escapes which should result in all characters being highlighted as such. The problem was that character literals with escape sequences longer than two characters were not recognized.
Brice Aldrich 858201c7 2019-07-10T21:45:22 Added support for PascaLIGO (#1947) This adds support for the [PascaLIGO language](http://ligolang.org).
Michael Schmidt 473f7fbd 2019-07-03T12:34:20 Added support for PC-Axis file format (#1940) This adds a new language for the PC-Axis file format.
Michael Schmidt de10bd1d 2019-07-01T19:55:12 Protobuf improvements (#1948) This makes numerous improvements to the Protobuf grammar adding (almost) full support for PB2 and PB3 syntax.
Michael Schmidt 36a5fa0e 2019-06-30T04:19:54 Known failure page (#1876) This PR adds a known failures page. This resolves #1750. The known failures are moved from the example pages. (I also updated all example pages with invalid HTML.) Some known failures were actually fixed in the meantime but never updated, so I removed a few. Those were: - Handlebars - Markdown's nested bold-italic - Smarty - Textile's "Nested styles are only partially supported" ### Screenshot <details> ![image](https://user-images.githubusercontent.com/20878432/56849438-7eca3200-68f4-11e9-9dc3-bf0256be8d1e.png) </details>
RunDevelopment 0b48301e 2019-06-12T15:46:07 Resolved conflicts
Michael Schmidt 3e181241 2019-06-12T15:28:44 Added more examples & small TOML improvement (#1917) This adds some of the missing examples and makes a small improvement to TOML.
Michael Schmidt 73d964be 2019-06-08T20:15:08 Added support for JQ language (#1896) This adds support for the JQ language.
RunDevelopment 96044979 2019-05-15T21:06:59 Added shell session language
Michael Schmidt c13d6e7d 2019-04-19T22:07:57 JS: Template strings: Increased bracket count of interpolations (#1845) This increases the number of nested braces which can be matched by JS's template pattern to supported nested objects within interpolation expressions.
Michal 30779976 2019-03-20T22:10:17 Added support for CMake language (#1820) This adds support for the [CMake](https://cmake.org/) language.
Michael Schmidt c37c90df 2019-03-05T22:17:36 Added EJS (#1769) This adds the EJS (Embedded JavaScript templates) language to Prism.
Michael Schmidt 64dc049d 2019-02-28T19:28:22 Added JSON5 language (#1744) This adds the JSON5 language to Prism.
Michael Schmidt 13e1c97d 2019-02-28T19:23:25 Added EBNF language (#1756) This adds the EBNF language.
Michael Schmidt 1df96c55 2019-02-28T19:18:05 Added BNF and RBNF languages (#1754) This adds the BNF and RBNF languages.
Michael Schmidt 6d98f0e7 2019-02-28T19:10:37 Added ANBF language (#1753) This adds a new language: ANBF (Augmented Backus–Naur form).
Michael Schmidt ae4842db 2019-02-27T14:54:06 Fixed JSON/JSONP examples (#1765) This corrects my previous mistake where I forgot to adjust the example of JSON after changing the implementation of JSONP.
Michael Schmidt b5041cf9 2019-02-26T05:41:01 Fix JSONP support (#1745) This PR fixes that JSON did not support [JSONP](https://en.wikipedia.org/wiki/JSONP) callback functions. I also added a JSON example page.
Stephan Max b94b56c1 2019-01-15T15:54:35 Added the Nand2Tetris HDL language (#1710) This adds support for the [Nand2Tetris](https://www.nand2tetris.org/) HDL language.
Toby Wilds 7def8f5c 2019-01-03T23:52:27 Added N1QL language support (#1620) Adds support for[N1QL](https://www.couchbase.com/products/n1ql) for Couchbase.
JeongHoon Byun (aka Outsider) c939df8e 2018-12-27T20:56:24 Added support for HCL (#1594) Adds support for HCL ([HashiCorp configuration language](https://github.com/hashicorp/hcl)).
Volk b48c012c 2018-12-15T20:32:22 Added Vala language (#1658) Adds support for the Vala language.
Michael Schmidt 4a8219a4 2018-12-02T19:25:05 Add support for Java stack traces (#1520) There are 3 main types of elements which are highlighted: 1. The summary. This is the head of the stack trace and includes the name of the exception and a message. `Exception in thread "main" java.lang.RuntimeException: A test exception` 2. Stack frames. These make up the actual stack trace and include the full name of the method and the source. `at com.stackify.stacktrace.StackTraceExample.methodB(StackTraceExample.java:13)` 3. Omitted frames. This is a simple message that some frames were omitted. `... 27 more` Everything besides these 3 element types will not be highlighted.
Michael Schmidt a69c2b62 2018-12-02T16:48:53 Improvements to Python F-strings and string prefixes (#1642) This PR adds support for [string interpolation](https://www.python.org/dev/peps/pep-0498/) (aka. f-strings) and makes the [string prefixes](https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals) part of the string. Resolves #1636. ### Known issues Assumes that strings inside the interpolation expression are 'nice'. So strings with unfortunate numbers of curley braces will cause incorrect highlighting: E.g.: `f"{'}'}"`.
Michael Schmidt 2288c25e 2018-12-01T18:37:20 Add G-code language (#1572) This PR adds the [G-code language](https://reprap.org/wiki/G-code) to Prism and resolves #1571. ### Features - All fields from A-Z ([case sensitive](https://reprap.org/wiki/G-code#Case_sensitivity)) and [checksums](https://reprap.org/wiki/G-code#.2A:_Checksum) (`*`). - [Comments](https://reprap.org/wiki/G-code#Comments) of both the semicolon and parenthesis style. - [Quoted strings](https://reprap.org/wiki/G-code#Quoted_strings). - The colon punctuation of [lists (see the example)](https://reprap.org/wiki/G-code#M584:_Set_drive_mapping).
Michael Schmidt b41fb8f1 2018-10-22T15:47:13 Fixes regex for JS examples (#1591) This PR fixes a regex example which Prism does not highlight correctly because it is preceded by a comment.
Олег Дутченко c1d6cb85 2018-10-19T04:06:02 Fix tokenizing !important (#1585) Updates the regex to ensure that when `!important` sits next to a property with no spaces, it's still tokenized correctly.
Mark Shi e529edd8 2018-09-15T21:52:37 Add GameMaker Language support (#1551) GameMaker is a cross-platform game engine developed by YoYo Games.
mAAdhaTTah e00b408f 2018-06-26T11:32:31 Remove extraneous class
Brandon Rhodes 334c7bca 2018-06-26T11:21:28 Add Python triple-quoted strings "known failure" (#1449) * Add example of failure in Python parser
Golmote e326cb03 2018-05-26T11:39:35 Add support for XQuery. Fix #1405 (#1411)
Guido Flohr e063992b 2018-05-10T12:07:34 Support for Template Toolkit 2 (#1418) * support for Template Toolkit 2 * optimized quoted string regexes * optimized double-quoted string regex * fully qualified tt2 plug-in names don't work Also use \w. * do not use empty character class See #1107. * put keyword tests in alphabetical order * ordered tt2 keywords alphabetically * removed redundant operator rule for tt2 * removed possibly existing old rules before inserti * indentation * allow backslash in front of lf in tt2 strings * indentation * avoid backtracking * escape xml special characters * indent with tab instead of spaces * greedy is no longer needed for variables Also use \w instead of explicit character class. * re-generated with gulp
Golmote db2d0ebb 2018-04-22T15:12:28 JavaScript: Add support for one level of nesting inside template strings. Fix #1397