# Hightlight.js wasm test page

**URL:** <https://swi-prolog.discourse.group/t/hightlight-js-wasm-test-page/5671>\
**Category:** SWI-Prolog web site and services\
**Created:** [August 9, 2022, 5:07pm UTC](https://swi-prolog.discourse.group/t/hightlight-js-wasm-test-page/5671 "2022-08-09T17:07:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [August 9, 2022, 5:07pm UTC](https://swi-prolog.discourse.group/t/hightlight-js-wasm-test-page/5671/1 "2022-08-09T17:07:36Z")

</div>

Note: This page is to demonstrate that for [highlight.js](https://highlightjs.org/) the name `wasm` and `webassembly` are not working.

wasm

```wasm
(module
  (import "js" "memory" (memory 1))
  (import "js" "table" (table 1 funcref))
  (type $void_to_i32 (func (result i32)))
  (func (export "doIt") (result i32)
   i32.const 0
   i32.const 42
   i32.store ;; store 42 at address 0
   i32.const 0
   call_indirect (type $void_to_i32))
)

```

webassembly

```webassembly
(module
  (import "js" "memory" (memory 1))
  (import "js" "table" (table 1 funcref))
  (type $void_to_i32 (func (result i32)))
  (func (export "doIt") (result i32)
   i32.const 0
   i32.const 42
   i32.store ;; store 42 at address 0
   i32.const 0
   call_indirect (type $void_to_i32))
)

```

* * *

_ **EDIT** _

[For Highlight.js languages webassembly or wasm are not in the list and not working](https://meta.discourse.org/t/for-highlight-js-languages-webassembly-or-wasm-are-not-in-the-list-an-not-working/235627)

---

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [September 25, 2022, 1:26pm UTC](https://swi-prolog.discourse.group/t/hightlight-js-wasm-test-page/5671/2 "2022-09-25T13:26:39Z")

</div>

It seems Discourse has updated to a new highlight.js version which works with **wasm**. Enjoy. 🙂
