All Projects → GerardPaligot → kighlighter

GerardPaligot / kighlighter

Licence: other
Simple and extendable code highlighter in Kotlin Multiplatform

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to kighlighter

me
A Jetpack Compose Kotlin Multiplatform WYSIWYG blog editor
Stars: ✭ 62 (+181.82%)
Mutual labels:  multiplatform, compose
kmm-production-sample
This is an open-source, mobile, cross-platform application built with Kotlin Multiplatform Mobile. It's a simple RSS reader, and you can download it from the App Store and Google Play. It's been designed to demonstrate how KMM can be used in real production projects.
Stars: ✭ 1,476 (+6609.09%)
Mutual labels:  multiplatform, compose
kmp-web-wizard
Wizard for Kotlin Multiplatform
Stars: ✭ 164 (+645.45%)
Mutual labels:  multiplatform, compose
Brick
🧱 Brick - Multiplatform navigation library for Compose.
Stars: ✭ 33 (+50%)
Mutual labels:  multiplatform, compose
ToDometer Multiplatform
WIP Kotlin Multiplatform project: A meter to-do list built with Android Jetpack, Compose UI Multiplatform, Wear Compose, SQLDelight, Koin Multiplatform, SwiftUI, Ktor Server / Client, Exposed...
Stars: ✭ 145 (+559.09%)
Mutual labels:  multiplatform, kmp
Aboutlibraries
AboutLibraries automatically detects all dependencies of a project and collects their information including the license. Optionally visualising it via the provided ui components.
Stars: ✭ 2,777 (+12522.73%)
Mutual labels:  multiplatform, compose
discovering-movies
Movie application with Kotlin Multiplatform and Jetpack Compose
Stars: ✭ 40 (+81.82%)
Mutual labels:  multiplatform, kmp
Compose Jb
Jetpack Compose for Desktop and Web, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
Stars: ✭ 7,562 (+34272.73%)
Mutual labels:  multiplatform, compose
Highlighter
🖍 Highlight whatever you want!
Stars: ✭ 909 (+4031.82%)
Mutual labels:  highlighter
Codeview
Android Code Highlighter
Stars: ✭ 204 (+827.27%)
Mutual labels:  highlighter
Laravel Blade
This package adds syntax definitions for the Laravel Blade engine.
Stars: ✭ 395 (+1695.45%)
Mutual labels:  highlighter
Url Highlight
PHP library to parse urls from string input
Stars: ✭ 61 (+177.27%)
Mutual labels:  highlighter
Json Viewer
It is a Chrome extension for printing JSON and JSONP.
Stars: ✭ 2,585 (+11650%)
Mutual labels:  highlighter
Hae
HaE - BurpSuite Highlighter and Extractor
Stars: ✭ 397 (+1704.55%)
Mutual labels:  highlighter
composer
API-first task runner with three methods: task, run and watch.
Stars: ✭ 35 (+59.09%)
Mutual labels:  compose
Highlighter.js
Easily navigate the DOM and highlight the elements - http://720kb.github.io/highlighter.js/
Stars: ✭ 370 (+1581.82%)
Mutual labels:  highlighter
vim-highlighter
Highlight words and expressions
Stars: ✭ 57 (+159.09%)
Mutual labels:  highlighter
ComposeBird
Flappy Bird game
Stars: ✭ 193 (+777.27%)
Mutual labels:  compose
D-KMP-sample
D-KMP Architecture official sample: it uses a shared KMP ViewModel and Navigation for Compose and SwiftUI apps.
Stars: ✭ 636 (+2790.91%)
Mutual labels:  kmp
Vscode Twitch Highlighter
This is a VS Code extension that will allow your Twitch chat to highlight a line of code via a command message. Example: `!line 8 server.js`. See master branch README.md for more details
Stars: ✭ 169 (+668.18%)
Mutual labels:  highlighter

Kighlighter

Simple and extendable code highlighter in Kotlin Multiplatform with a composable output to display the code highlighted on Android and Desktop.

Usage

Kighlighter(
    snippet = yourCode,
    language = Kotlin(palette = Palettes.Darcula),
    modifier = Modifier.height(300.dp)
)

Customization

ColorScheme

If you don't like any palettes provided by the library, you can create your own palette, the color scheme of the supported language and provide the palette when you create the language object.

When you create your palette object, add the sealed interface as interface of your own palette.

When you create your color scheme value class, add the language color scheme interface of your own color scheme (e.g. KotlinColorScheme).

Finally, you can give your palette in the language class:

Kotlin(palette = YourOwnPalette)

Download

Release artifacts aren't available yet but if you want to test latest changes merge in main branch, you can test snapshot artifacts.

repositories {
    maven {
        url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
    }
}

// Android artifact
implementation("com.paligot.kighlighter:kighlighter-compose:1.0.0-SNAPSHOT")
// Desktop artifact
implementation("com.paligot.kighlighter:kighlighter-compose-desktop:1.0.0-SNAPSHOT")

License

Copyright 2021 Gérard Paligot.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].