Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature - optimise build size and performance with PrismLight syntax highlighter and add a new highlighter style selector #97

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

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit Hold shift + click to select a range
c64fed2
using PrismLight instead of Prism for syntax highlighting
barrymun Jan 1, 2025
5ee6bc8
consolidate theme logic, allow the user to select a highlighter style...
barrymun Jan 1, 2025
d395148
Merge branch 'main' into feature/optimised-highlighter
barrymun Jan 1, 2025
7ad5e5d
consolidate Selector component logic to remove duplicate code
barrymun Jan 1, 2025
4ce57e5
highlighter style persisted in localStorage
barrymun Jan 1, 2025
f205b88
language persisted in localStorage
barrymun Jan 1, 2025
9c59610
Merge branch 'main' into feature/optimised-highlighter
barrymun Jan 2, 2025
4105d60
fix selector overflow issue with ellipsis
barrymun Jan 2, 2025
4276bb3
Merge branch 'main' into feature/optimised-highlighter
barrymun Jan 2, 2025
8fc1cd7
Merge branch 'main' into feature/optimised-highlighter
barrymun Jan 2, 2025
69c33fc
cspell ignore highlighter-styles.ts
barrymun Jan 2, 2025
5bbd91b
JS lang text should be uppercase, reverting to Prism instead of Prism...
barrymun Jan 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
JS lang text should be uppercase, reverting to Prism instead of Prism...
...Light
  • Loading branch information
barrymun committed Jan 2, 2025
commit 5bbd91b007c571ad0c4e20b0166aff65e948fb89
2 changes: 1 addition & 1 deletion src/components/CodePreview.tsx
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PrismLight as SyntaxHighlighter } from "react-syntax-highlighter";
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";

import { useAppContext } from "@contexts/AppContext";

Expand Down
2 changes: 1 addition & 1 deletion src/contexts/AppContext.tsx
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {

// tokens
const defaultLanguage: LanguageType = {
lang: "JavaScript",
lang: "JAVASCRIPT",
icon: "/icons/javascript.svg",
};

Expand Down
Loading

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /