I believe highlightjs already has nix code syntax highlighting but just needs to be added to leafwiki?
About 75% of my notes is Nix code so the syntax highlighting would be a good quality of life improvement. But your leafwiki app is perfect, exactly what I always hoped for. So I'm glad it exists for a folder based guy like me. I can never stand #tags. Nothing beats the organization you get from putting things in the folders that they belong in. ❤️
Here is sample nix code:
{ config, pkgs, ... }:
{
# Import other configuration modules
# (hardware-configuration.nix is autogenerated upon installation)
# paths in nix expressions are always relative the file which defines them
imports = [
./hardware-configuration.nix
./my-dev-tools.nix
./my-desktop-env.nix
./etc.nix
];
# Name your host machine
networking.hostName = "mymachine";
# Set your time zone.
time.timeZone = "Europe/Utrecht";
# Enter keyboard layout
services.xserver.layout = "us";
services.xserver.xkbVariant = "altgr-intl";
# Define user accounts
users.users.myuser = {
extraGroups = [ "wheel" "networkmanager" ];
isNormalUser = true;
};
# Install some packages
environment.systemPackages = with pkgs; [
ddate
testdisk
];
# Enable the OpenSSH daemon
services.openssh.enable = true;
}
I believe highlightjs already has nix code syntax highlighting but just needs to be added to leafwiki?
About 75% of my notes is Nix code so the syntax highlighting would be a good quality of life improvement. But your leafwiki app is perfect, exactly what I always hoped for. So I'm glad it exists for a folder based guy like me. I can never stand #tags. Nothing beats the organization you get from putting things in the folders that they belong in. ❤️
Here is sample nix code: