Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4f14555

Browse files
committed
Updated highlights
1 parent 63a4d1a commit 4f14555

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2618,19 +2618,19 @@ indexes = <array>.argmin(axis)
26182618
* **Axis is the index of a dimension that gets collapsed. The leftmost dimension has index 0.**
26192619

26202620
### Indexing
2621-
```python
2621+
```bash
26222622
<el> = <2d_array>[0, 0] # First element.
26232623
<1d_view> = <2d_array>[0] # First row.
26242624
<1d_view> = <2d_array>[:, 0] # First column. Also [..., 0].
26252625
<3d_view> = <2d_array>[None, :, :] # Expanded by dimension of size 1.
26262626
```
26272627

2628-
```python
2628+
```bash
26292629
<1d_array> = <2d_array>[<1d_row_indexes>, <1d_column_indexes>]
26302630
<2d_array> = <2d_array>[<2d_row_indexes>, <2d_column_indexes>]
26312631
```
26322632

2633-
```python
2633+
```bash
26342634
<2d_bools> = <2d_array> > 0
26352635
<1d_array> = <2d_array>[<2d_bools>]
26362636
```

parse.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,9 @@ function fixHighlights() {
532532
$(`code:contains(\'<class_name>\', <parents_tuple>, <attributes_dict>)`).html(TYPE);
533533
$(`code:contains(ValueError: malformed node)`).html(EVAL);
534534
$(`code:contains(pip3 install tqdm)`).html(PROGRESS_BAR);
535-
$(`code:contains(<el> = <2d_array>[0, 0])`).html(NUMPY_1);
536-
$(`code:contains(<1d_array> = <2d_array>[<1d_row_indexes>)`).html(NUMPY_2);
537-
$(`code:contains(<2d_bools> = <2d_array> > 0)`).html(NUMPY_3);
535+
$(`code:contains(<el> = <2d_array>[0, 0])`).html(NUMPY_1).removeClass().addClass("python language-python hljs");
536+
$(`code:contains(<1d_array> = <2d_array>[<1d_row_indexes>)`).html(NUMPY_2).removeClass().addClass("python language-python hljs");
537+
$(`code:contains(<2d_bools> = <2d_array> > 0)`).html(NUMPY_3).removeClass().addClass("python language-python hljs");
538538
$(`code:contains(pip3 install pyinstaller)`).html(PYINSTALLER);
539539
$(`ul:contains(Only available in)`).html(INDEX);
540540
}

0 commit comments

Comments
 (0)