HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/debout/debout.nl/vendor/scrivo/highlight.php/test/detect/julia-repl/default.txt
julia> function foo(x) x + 1 end
foo (generic function with 1 method)

julia> foo(42)
43

julia> foo(42) === 43.
false


Here we match all three lines of code:

julia> function foo(x::Float64)
           42. - x
       end
foo (generic function with 2 methods)

julia> for x in Any[1, 2, 3.4]
          println("foo($x) = $(foo(x))")
       end
foo(1) = 2
foo(2) = 3
foo(3.4) = 38.6


... unless it is not properly indented:

julia> function foo(x)
    x + 1
end


Ordinary Julia code does not get highlighted:

Pkg.add("Combinatorics")
abstract type Foo end