Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PureBASIC 5.60 #1508

Merged
merged 8 commits into from Aug 17, 2019
Merged

PureBASIC 5.60 #1508

merged 8 commits into from Aug 17, 2019

Conversation

tajmone
Copy link
Contributor

@tajmone tajmone commented Apr 30, 2017

Update PureBASIC language definition to version 5.60 (new keywords)

@tajmone
Copy link
Contributor Author

tajmone commented Apr 30, 2017

Sorry for the unclean commits history ... the changed file is just the language definition.

tajmone and others added 2 commits May 12, 2017 13:49
Some keywords were mistakenly joined together during RegEx operations. This commit fixes the lists (which was recreated from scratch)
@marcoscaceres marcoscaceres merged commit 4b34279 into highlightjs:master Aug 17, 2019
@azjio
Copy link

azjio commented Sep 23, 2019

I used the script on the official forum PureBasic, but it is not enough highlighting code.

@tajmone
Copy link
Contributor Author

tajmone commented Sep 24, 2019

@azjio:

I used the script on the official forum PureBasic, but it is not enough highlighting code.

In what sense? It doesn't highlight at all or it doesn't highlight well?

I've used it in many projects and it's working fine. Here you'll find some prebuild hjs packages for PureBasic (modded version, slightly old hjs version) with full examples and instructions:

Here's a live example of PB code being highlighted:

@azjio
Copy link

azjio commented Sep 24, 2019

@tajmone
Copy link
Contributor Author

tajmone commented Sep 25, 2019

I don't see any PB code on the page of first link.

The second link points to the PB forum, but the forum doesn't try to load the hjs package at all.

In order to make Highlight.js work on CMSs, Forums softwares, etc., you'll need to edit the application template to ensure:

  1. It loads the precompiled Highlight.js package with the languages you need.
  2. It emits the correct tags around code blocks, so that hjs can find them and auto-detect the code language.

But this is not an issue specific to the PureBasic language, but a general issue with setting up HJS.

You'll probably find better support by asking help on the community support forums for these specific web forum applications (phpBB, etc.), they might know how to adapt the underlying template, and if there are any conflicts with other JS plugins.

@azjio
Copy link

azjio commented Sep 25, 2019

I don't see any PB code on the page of first link

you'll need to edit the application template to ensure:

The first link contains "edit template". Use Greasemonkey, Tampermonkey. When using javascript code highlighting good. I've tried using regular expressions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants