Skip to content

Commit a46a170

Browse files
committed
new lang add zig lang
1 parent 48b2a5b commit a46a170

32 files changed

Lines changed: 17124 additions & 85 deletions

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
- [x] yaml
4242
- [x] json
4343
- [x] xml
44+
- [x] zig
4445

4546
## Note
4647

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
package ir.ninjacoder.code;
2+
23
import android.content.Context;
4+
import android.graphics.Paint;
35
import android.view.View;
46

5-
public class CodeView extends View{
6-
public CodeView(Context f){
7-
super(f);
8-
}
7+
public class CodeView extends View {
8+
Paint p ;
9+
public CodeView(Context f) {
10+
super(f);
11+
p.clearShadowLayer();
12+
}
913
}

app/src/main/java/ir/ninjacoder/code/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected void onCreate(Bundle savedInstanceState) {
5050

5151
binding.btn.setOnClickListener(
5252
v -> {
53-
binding.et.takeScreenshot(FormatImage.PNG);
53+
binding.et.takeScreenshot(FormatImage.VECTORDRAWABLE);
5454
});
5555

5656
ad.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#AndroidIDE: enforce UTF-8 & locale for Gradle daemon
2-
#Sat Oct 25 14:03:02 GMT 2025
2+
#Fri Oct 31 12:31:56 GMT 2025
33
android.suppressUnsupportedCompileSdk=35
44
android.nonTransitiveRClass=false
55
-Dfile.encoding=UTF-8

outputs/codesnap-1.1.1-javadoc.jar

261 Bytes
Binary file not shown.

outputs/codesnap-1.1.1-sources.jar

648 KB
Binary file not shown.

snapcode/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ dependencies {
5151
implementation 'io.noties.markwon:ext-tasklist:4.6.2'
5252
implementation 'io.noties.markwon:image-glide:4.6.2'
5353
implementation 'io.noties.markwon:core:4.6.2'
54-
54+
// implementation("com.caverock:androidsvg:1.4")
5555
implementation("io.noties.markwon:syntax-highlight:4.6.2") {
5656

5757
exclude group: "org.jetbrains", module: "annotations"

snapcode/src/main/java/ir/ninjacoder/codesnap/FormatImage.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ public enum FormatImage {
55
JPEG(1),
66
WEBP(2),
77
PDF(3),
8-
WEB_LOSSY(4);
8+
WEB_LOSSY(4),
9+
SVG(5),
10+
VECTORDRAWABLE(6);
911
int id;
1012

1113
FormatImage(int id) {

snapcode/src/main/java/ir/ninjacoder/codesnap/LangType.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public enum LangType {
2323
YAML(".yml"),
2424
RUBY(".rb"),
2525
MARKDOWN(".md"),
26+
ZIG(".zig"),
2627
NONE("");
2728

2829
private final String langname;

0 commit comments

Comments
 (0)