Important Smali Code-blocks

Advertise with us


Welcome!
Join this incredible group of like-minded people and start discussing everything IPTV.
Register now

Brain

Retired
Staff member
Mar 11, 2022
2,305
6
2,862
Uranus
iptvapps.net
You can now use Smali language in your code blocks for better syntax highlighting,

For example:
Smali:
.class public LHelloWorld;

.super Ljava/lang/Object;

.method public static main([Ljava/lang/String;)V
    .registers 2

    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v1, "Hello World!"

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    return-void
.end method

You can achieve the same by wrapping your Smali code in `code-blocks`:


[code=smali]
.class public LHelloWorld;
[/code]


Hopefully the extra bit of syntax highlighting will make it a slightly easier to read and navigate when
discussing topics where members may need to post snippets.
 
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock