All Projects → torchlight-api → torchlight-laravel

torchlight-api / torchlight-laravel

Licence: MIT License
A Laravel client for Torchlight - the syntax highlighting API.

Programming Languages

PHP
23972 projects - #3 most used programming language
Blade
752 projects

Projects that are alternatives of or similar to torchlight-laravel

Nord Visual Studio Code
An arctic, north-bluish clean and elegant Visual Studio Code theme.
Stars: ✭ 749 (+1070.31%)
Mutual labels:  syntax-highlighting, vscode
Vscode Terraform
A Visual Studio Code extension for Hashicorp Terraform
Stars: ✭ 672 (+950%)
Mutual labels:  syntax-highlighting, vscode
vscode-angular-html
Angular syntax highlighting for HTML templates
Stars: ✭ 35 (-45.31%)
Mutual labels:  syntax-highlighting, vscode
Vscode Vlang
V Language extension for Visual Studio Code.
Stars: ✭ 190 (+196.88%)
Mutual labels:  syntax-highlighting, vscode
Syntax Highlighter
Syntax Highlighter extension for Visual Studio Code (VSCode). Based on Tree-sitter.
Stars: ✭ 88 (+37.5%)
Mutual labels:  syntax-highlighting, vscode
Vscode Smarty
Smarty syntax highlight extension for Visual Studio Code
Stars: ✭ 10 (-84.37%)
Mutual labels:  syntax-highlighting, vscode
Graphql For Vscode
GraphQL syntax highlighting, linting, auto-complete, and more!
Stars: ✭ 265 (+314.06%)
Mutual labels:  syntax-highlighting, vscode
Vue Theme Vscode
+200.000 installs ⬇️ Theme for Visual Studio Code inspired by Vue.js, with support for more popular languages, trying to maintain a perfect harmony of colors.
Stars: ✭ 54 (-15.62%)
Mutual labels:  syntax-highlighting, vscode
Processing Vscode
A Visual Studio Code extension for the programming language Processing
Stars: ✭ 141 (+120.31%)
Mutual labels:  syntax-highlighting, vscode
flutter syntax view
Flutter Syntax Highlighter
Stars: ✭ 88 (+37.5%)
Mutual labels:  syntax-highlighting, code-highlighter
vscode-leetcode-cpp-debug
Debug support for LeetCode with C++
Stars: ✭ 14 (-78.12%)
Mutual labels:  vscode
vscode-save-and-run
Visual Studio Code extension to run commands whenever a file is saved https://marketplace.visualstudio.com/items?itemName=wk-j.save-and-run
Stars: ✭ 31 (-51.56%)
Mutual labels:  vscode
Vue2-All
Vue2 + Vue-router2 + Vuex + Webpack + axios + jwt
Stars: ✭ 67 (+4.69%)
Mutual labels:  vscode
vscode-snazzy-theme
🎨 VS Code theme based on hyper-snazzy with bright colors
Stars: ✭ 16 (-75%)
Mutual labels:  vscode
vscode-azureappservice
Azure App Service extension for VS Code
Stars: ✭ 79 (+23.44%)
Mutual labels:  vscode
vscode-less
🔌 Less intellisense for Variables and Mixins in all Less files.
Stars: ✭ 21 (-67.19%)
Mutual labels:  vscode
prism
🧛🏻‍♂️ Dark theme for Prism.js
Stars: ✭ 33 (-48.44%)
Mutual labels:  syntax-highlighting
SmartVHDL
SublimeText Plugin for VHDL (highlight, autocompletion, navigation, ...)
Stars: ✭ 12 (-81.25%)
Mutual labels:  syntax-highlighting
vscode-auto-npx
Auto resolving local Node.js binaries in VS Code terminal.
Stars: ✭ 87 (+35.94%)
Mutual labels:  vscode
config-public
Linux/WSL config to optimize ergonomics, security, and productivity: vim/neovim, zsh, tmux, i3, emacs, vscode, ipython, jupyter, ranger, fzf, kitty, xkb, selfquant, firejail, systemd, etc
Stars: ✭ 14 (-78.12%)
Mutual labels:  vscode

Laravel Torchlight Client

Tests Latest Stable Version Total Downloads License

A Torchlight syntax highlighting extension for the Laravel framework.

Torchlight is a VS Code-compatible syntax highlighter that requires no JavaScript, supports every language, every VS Code theme, line highlighting, git diffing, and more.

Installation

To install, require the package from composer:

composer require torchlight/torchlight-laravel

Configuration

Once the package is downloaded, you can run the following command to publish your configuration file:

php artisan torchlight:install

Once run, you should see a new file torchlight.php in you config folder, with contents that look like this:

<?php
return [
    // The Torchlight client caches highlighted code blocks. Here
    // you can define which cache driver you'd like to use.
    'cache' => env('TORCHLIGHT_CACHE_DRIVER'),

    // Which theme you want to use. You can find all of the themes at
    // https://torchlight.dev/themes, or you can provide your own.
    'theme' => env('TORCHLIGHT_THEME', 'material-theme-palenight'),

    // Your API token from torchlight.dev.
    'token' => env('TORCHLIGHT_TOKEN'),

    // If you want to register the blade directives, set this to true.
    'blade_components' => true,

    // The Host of the API.
    'host' => env('TORCHLIGHT_HOST', 'https://api.torchlight.dev'),
];

Cache

Set the cache driver that Torchlight will use.

Theme

You can change the theme of all your code blocks by adjusting the theme key in your configuration.

Token

This is your API token from torchlight.dev. (Torchlight is completely free for personal and open source projects.)

Blade Components

By default Torchlight works by using a custom Laravel component. If you'd like to disable the registration of the component for whatever reason, you can turn this to false.

Host

You can change the host where your API requests are sent. Not sure why you'd ever want to do that, but you can!

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].